jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject [02/51] [partial] added missing querybuilder code.
Date Wed, 15 Oct 2014 18:41:39 GMT
http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetAccessorHTTP.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetAccessorHTTP.java b/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetAccessorHTTP.java
deleted file mode 100644
index 1314a2b..0000000
--- a/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetAccessorHTTP.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.jena.fuseki.http;
-
-import static org.apache.jena.fuseki.ServerTest.* ;
-import org.apache.jena.atlas.junit.BaseTest ;
-import org.apache.jena.atlas.web.HttpException ;
-import org.apache.jena.fuseki.ServerTest ;
-import org.apache.jena.riot.web.HttpOp ;
-import org.apache.jena.web.HttpSC ;
-import org.junit.AfterClass ;
-import org.junit.Before ;
-import org.junit.BeforeClass ;
-import org.junit.Test ;
-
-import com.hp.hpl.jena.query.DatasetAccessor ;
-import com.hp.hpl.jena.query.DatasetAccessorFactory ;
-import com.hp.hpl.jena.rdf.model.Model ;
-import com.hp.hpl.jena.rdf.model.ModelFactory ;
-
-
-public class TestDatasetAccessorHTTP extends BaseTest 
-{
-    //Model level testing.
-    
-    static final String datasetURI_not_1    = "http://localhost:"+port+"/junk" ;
-    static final String datasetURI_not_2    = serviceREST+"/not" ;
-    static final String datasetURI_not_3    = "http://localhost:"+port+datasetPath+"/not/data" ;
-    
-    @BeforeClass public static void beforeClass()   { ServerTest.allocServer() ; }
-    @AfterClass public static void afterClass()     { ServerTest.freeServer() ; }
-    @Before public void before()                    { ServerTest.resetServer() ; }
-    
-    @Test
-    public void test_ds_1()
-    {
-        // Can GET the dataset service.
-        try {
-            HttpOp.execHttpGet(serviceREST) ;
-        } catch (HttpException ex) {
-            assertTrue(HttpSC.isClientError(ex.getResponseCode())) ;
-            throw ex ;
-        }
-    }
-    
-    @Test(expected=HttpException.class)
-    public void test_ds_2()
-    {
-        try {
-            HttpOp.execHttpGet(datasetURI_not_1) ;
-        } catch (HttpException ex) {
-            assertEquals(HttpSC.NOT_FOUND_404, ex.getResponseCode()) ;
-            throw ex ;
-        }
-    }
-
-    @Test(expected=HttpException.class)
-    public void test_ds_3()
-    {
-        try {
-            HttpOp.execHttpGet(datasetURI_not_2) ;
-        } catch (HttpException ex) {
-            assertEquals(HttpSC.NOT_FOUND_404, ex.getResponseCode()) ;
-            throw ex ;
-        }
-    }
-
-    @Test
-    public void test_404_1()
-    {
-        // Not the right service.
-        DatasetAccessor du = DatasetAccessorFactory.createHTTP(datasetURI_not_1) ;
-        Model graph = du.getModel(gn99) ;
-        assertNull(graph) ; 
-    }
-
-    @Test
-    public void test_404_2()
-    {
-        DatasetAccessor du = DatasetAccessorFactory.createHTTP(datasetURI_not_2) ;
-        Model graph = du.getModel(gn99) ;
-        assertNull(graph) ;
-    }
-
-    @Test
-    public void test_404_3()
-    {
-        // Right service, wrong graph
-        DatasetAccessor du = DatasetAccessorFactory.createHTTP(serviceREST) ;
-        Model graph = du.getModel(gn99) ;
-        assertNull(graph) ;
-    }
-
-    @Test public void head_01()
-    {
-        DatasetAccessor du = create() ;
-        boolean b = du.containsModel(gn1) ;
-        assertFalse("Blank remote dataset as a named graph", b) ;
-    }
-
-    @Test public void head_02()
-    {
-        DatasetAccessor du = create() ;
-        du.putModel(gn1, model1) ;
-        boolean exists = du.containsModel(gn1) ;
-        assertTrue(exists) ;
-        exists = du.containsModel(gn2) ;
-        assertFalse("Expected gn2 not to exist (1)", exists) ;
-
-        exists = du.containsModel(gn2) ;
-        assertFalse("Expected gn2 not to exist (2)", exists) ;
-        // Clearup
-        du.deleteModel(gn1) ;
-    }
-
-    @Test public void get_01()
-    {
-        DatasetAccessor du = create() ;
-        Model graph = du.getModel() ;
-        assertTrue(graph.isEmpty()) ;
-    }
-    
-    @Test public void get_02()
-    {
-        DatasetAccessor du = create() ;
-        Model graph = du.getModel(gn1) ;
-        assertNull(graph) ;
-    }
-
-    @Test public void delete_01()
-    {
-        DatasetAccessor du = create() ;
-        du.deleteDefault() ;
-    }
-
-    @Test public void delete_02()
-    {
-        DatasetAccessor du = create() ;
-        du.deleteModel(gn1) ;
-        boolean exists = du.containsModel(gn1) ;
-        assertFalse("Expected gn1 not to exist", exists) ;
-    }
-
-    @Test public void put_01()
-    {
-        DatasetAccessor du = create() ;
-        du.putModel(model1) ;
-        Model graph = du.getModel() ;
-        assertTrue(graph.isIsomorphicWith(model1)) ;
-        // Empty it.
-        du.deleteDefault() ;
-        graph = du.getModel() ;
-        assertTrue(graph.isEmpty()) ;
-    }
-    
-    @Test public void put_02()
-    {
-        DatasetAccessor du = create() ;
-        du.putModel(gn1, model1) ;
-        boolean exists = du.containsModel(gn1) ;
-        assertTrue(exists) ;
-        exists = du.containsModel(gn2) ;
-        assertFalse("Expected gn2 not to exist", exists) ;
-        
-        Model graph = du.getModel() ;
-        assertTrue(graph.isEmpty()) ;
-        graph = du.getModel(gn1) ;
-        assertTrue(graph.isIsomorphicWith(model1)) ;
-        
-        du.deleteModel(gn1) ;
-        exists = du.containsModel(gn1) ;
-        assertFalse("Expected gn1 not to exist", exists) ;
-        
-        graph = du.getModel(gn1) ;
-        assertNull(graph) ;
-    }
-
-    @Test public void put_03()
-    {
-        DatasetAccessor du = create() ;
-        du.putModel(model1) ;
-        du.putModel(model2) ;  // PUT overwrites
-        Model graph = du.getModel() ;
-        assertFalse(graph.isIsomorphicWith(model1)) ;
-        assertTrue(graph.isIsomorphicWith(model2)) ;
-        // Empty it.
-        du.deleteDefault() ;
-        graph = du.getModel() ;
-        assertTrue(graph.isEmpty()) ;
-    }
-
-    @Test public void post_01()
-    {
-        DatasetAccessor du = create() ;
-        du.putModel(model1) ;
-        du.add(model2) ;  // POST appends
-        Model graph = du.getModel() ;
-        
-        Model graph3 = ModelFactory.createDefaultModel() ;
-        graph3.add(model1) ;
-        graph3.add(model2) ;
-        
-        assertFalse(graph.isIsomorphicWith(model1)) ;
-        assertFalse(graph.isIsomorphicWith(model2)) ;
-        assertTrue(graph.isIsomorphicWith(graph3)) ;
-        // Empty it.
-        du.deleteDefault() ;
-        graph = du.getModel() ;
-        assertTrue(graph.isEmpty()) ;
-    }
-
-    @Test public void post_02()
-    {
-        DatasetAccessor du = create() ;
-        du.add(model1) ;
-        du.add(model2) ;
-        Model graph = du.getModel() ;
-        
-        Model graph3 = ModelFactory.createDefaultModel() ;
-        graph3.add(model1) ;
-        graph3.add(model2) ;
-        
-        assertFalse(graph.isIsomorphicWith(model1)) ;
-        assertFalse(graph.isIsomorphicWith(model2)) ;
-        assertTrue(graph.isIsomorphicWith(graph3)) ;
-        // Empty it.
-        du.deleteDefault() ;
-        graph = du.getModel() ;
-        assertTrue(graph.isEmpty()) ;
-    }
-    
-    @Test public void clearup_1()
-    {
-        DatasetAccessor du = create() ;
-        du.deleteDefault() ;
-        du.deleteModel(gn1) ;
-        du.deleteModel(gn2) ;
-        du.deleteModel(gn99) ;
-    }
-
-    static DatasetAccessor create()
-    {
-        return DatasetAccessorFactory.createHTTP(ServerTest.serviceREST) ;
-    }
-}

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetGraphAccessorHTTP.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetGraphAccessorHTTP.java b/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetGraphAccessorHTTP.java
deleted file mode 100644
index 7687b2c..0000000
--- a/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestDatasetGraphAccessorHTTP.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.jena.fuseki.http;
-
-import org.apache.jena.fuseki.ServerTest ;
-import org.apache.jena.web.AbstractTestDatasetGraphAccessor ;
-import org.apache.jena.web.DatasetGraphAccessor ;
-import org.apache.jena.web.DatasetGraphAccessorHTTP ;
-import org.junit.AfterClass ;
-import org.junit.Before ;
-import org.junit.BeforeClass ;
-
-public class TestDatasetGraphAccessorHTTP extends AbstractTestDatasetGraphAccessor
-{
-    @BeforeClass public static void beforeClass() { ServerTest.allocServer() ; }
-    @AfterClass public static void afterClass() { ServerTest.freeServer() ; }
-    @Before public void before() { 
-        ServerTest.resetServer() ; 
-    }
-
-    
-    @Override
-    protected DatasetGraphAccessor getDatasetUpdater()
-    {
-        return new DatasetGraphAccessorHTTP(ServerTest.serviceREST) ;
-    }
-}

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestHttpOp.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestHttpOp.java b/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestHttpOp.java
deleted file mode 100644
index 9dc8713..0000000
--- a/jena-fuseki2/src/test/java/org/apache/jena/fuseki/http/TestHttpOp.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.jena.fuseki.http;
-
-import org.apache.jena.atlas.junit.BaseTest ;
-import org.apache.jena.atlas.web.HttpException ;
-import org.apache.jena.atlas.web.TypedInputStream ;
-import org.apache.jena.fuseki.ServerTest ;
-import org.apache.jena.riot.WebContent ;
-import org.apache.jena.riot.system.IRILib ;
-import org.apache.jena.riot.web.HttpOp ;
-import org.apache.jena.web.HttpSC ;
-import org.junit.AfterClass ;
-import org.junit.BeforeClass ;
-import org.junit.Test ;
-
-import com.hp.hpl.jena.sparql.engine.http.Params ;
-
-// This a mixture of testing HttpOp and testing basic operation of the SPARQL server
-// especially error cases abnd unusual usage that the higher level APIs don't use.
-public class TestHttpOp extends BaseTest {
-    
-    static String pingURL = ServerTest.urlRoot+"$/ping" ;
-    @BeforeClass public static void beforeClass() { ServerTest.allocServer() ; }
-    @AfterClass  public static void afterClass()  { ServerTest.freeServer() ; }
-    
-    static String gspServiceURL     = ServerTest.serviceREST ;
-    static String defaultGraphURL   = ServerTest.serviceREST+"?default" ;
-    static String namedGraphURL     = ServerTest.serviceREST+"?graph=http://example/g" ;
-    static String queryURL          = ServerTest.serviceQuery ;
-    static String updateURL         = ServerTest.serviceUpdate ;
-    
-    static String simpleQuery = queryURL+"?query="+IRILib.encodeUriComponent("ASK{}") ;
-    
-    // Basic operations
-    
-    @Test public void httpGet_01() {
-        try ( TypedInputStream in = HttpOp.execHttpGet(pingURL) ) {}
-    }
-    
-    @Test(expected=HttpException.class) 
-    public void httpGet_02() {
-        try ( TypedInputStream in = HttpOp.execHttpGet(ServerTest.urlRoot+"does-not-exist") ) { }
-        catch(HttpException ex) {
-            assertEquals(HttpSC.NOT_FOUND_404, ex.getResponseCode()) ;
-            throw ex ;
-        }
-    }
-
-    @Test public void httpGet_03() {
-        String x = HttpOp.execHttpGetString(pingURL) ;
-    }   
-    
-    @Test public void httpGet_04() {
-        String x = HttpOp.execHttpGetString(ServerTest.urlRoot+"does-not-exist") ;
-        assertNull(x) ;
-    }
-    
-    @Test public void httpGet_05() {
-        try ( TypedInputStream in = HttpOp.execHttpGet(simpleQuery) ) {}
-    }
-    
-    // SPARQL Query
-    
-    @Test public void queryGet_01() {
-        try ( TypedInputStream in = HttpOp.execHttpGet(simpleQuery) ) {}
-    }
-
-    @Test(expected=HttpException.class)
-    public void queryGet_02() {
-        // No query.
-        try ( TypedInputStream in = HttpOp.execHttpGet(queryURL+"?query=") ) {}
-        catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.BAD_REQUEST_400) ;
-            throw ex ; 
-        }
-    }
-
-    @Test(expected=HttpException.class)
-    public void httpPost_01() {
-        try {
-            HttpOp.execHttpPost(queryURL, "ASK{}", "text/plain") ;
-        } catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.UNSUPPORTED_MEDIA_TYPE_415) ;
-            throw ex ;
-        }
-    }
-    
-    @Test(expected=HttpException.class)
-    public void httpPost_02() {
-        try {
-            HttpOp.execHttpPost(queryURL, "ASK{}", WebContent.contentTypeSPARQLQuery) ;
-        } catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.UNSUPPORTED_MEDIA_TYPE_415) ;
-            throw ex ;
-        }
-    }
-    
-    @Test(expected=HttpException.class)
-    public void httpPost_03() {
-        try {
-            HttpOp.execHttpPost(queryURL, "ASK{}", WebContent.contentTypeOctets) ;
-        } catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.UNSUPPORTED_MEDIA_TYPE_415) ;
-            throw ex ;
-        }
-    }
-        
-    @Test public void httpPost_04() {
-        Params params = new Params() ;
-        params.addParam("query", "ASK{}") ;
-        try ( TypedInputStream in = HttpOp.execHttpPostFormStream(queryURL, params, WebContent.contentTypeResultsJSON) ) {}
-    }
-    
-    @Test(expected=HttpException.class)
-    public void httpPost_05() {
-        Params params = new Params() ;
-        params.addParam("query", "ASK{}") ;
-        // Query to Update
-        try ( TypedInputStream in = HttpOp.execHttpPostFormStream(updateURL, params, WebContent.contentTypeResultsJSON) ) { }
-        catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.BAD_REQUEST_400) ;
-            throw ex ;
-        }
-    }
-    
-    @Test public void httpPost_06() {
-        Params params = new Params() ;
-        params.addParam("request", "CLEAR ALL") ;
-        HttpOp.execHttpPostForm(updateURL, params) ;
-    }
-    
-    // GSP
-    @Test public void gsp_01() {
-        String x = HttpOp.execHttpGetString(defaultGraphURL, "application/rdf+xml") ;
-        assertTrue(x.contains("</")) ;
-        assertTrue(x.contains(":RDF")) ;
-    }
-
-    @Test public void gsp_02() {
-        String x = HttpOp.execHttpGetString(defaultGraphURL, "application/n-triples") ;
-        assertTrue(x.isEmpty()) ;
-    }
-    
-    static String graphString = "@prefix : <http://example/> . :s :p :o ." ;
-    static String datasetString = "@prefix : <http://example/> . :s :p :o . :g { :sg :pg :og }" ;
-    
-    @Test public void gsp_03() {
-        HttpOp.execHttpPut(defaultGraphURL, WebContent.contentTypeTurtle, graphString) ;
-    }
-    
-    @Test public void gsp_04() {
-        HttpOp.execHttpPut(defaultGraphURL, WebContent.contentTypeTurtle, graphString) ;
-        String s1 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertFalse(s1.isEmpty()) ;
-        HttpOp.execHttpDelete(defaultGraphURL) ;
-        String s2 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertTrue(s2.isEmpty()) ;
-    }
-    
-    @Test public void gsp_05() {
-        HttpOp.execHttpDelete(defaultGraphURL) ;
-        
-        HttpOp.execHttpPost(defaultGraphURL, WebContent.contentTypeTurtle, graphString) ;
-        String s1 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertFalse(s1.isEmpty()) ;
-        HttpOp.execHttpDelete(defaultGraphURL) ;
-        String s2 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertTrue(s2.isEmpty()) ;
-    }
-    
-    @Test public void gsp_06() {
-        //HttpOp.execHttpDelete(namedGraphURL) ; -- woudl be 404.
-        
-        HttpOp.execHttpPost(namedGraphURL, WebContent.contentTypeTurtle, graphString) ;
-        String s1 = HttpOp.execHttpGetString(namedGraphURL, WebContent.contentTypeNTriples) ;
-        assertFalse(s1.isEmpty()) ;
-        String s2 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertTrue(s2.isEmpty()) ;
-        HttpOp.execHttpDelete(namedGraphURL) ;
-        String s3 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertTrue(s3.isEmpty()) ;
-        
-        try {
-            HttpOp.execHttpDelete(namedGraphURL) ;
-            fail("Expected 404") ;
-        } catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.NOT_FOUND_404) ;
-        }
-        
-    }
-
-    // Extended GSP - no ?default, no ?graph acts on the datasets as a whole.  
-   
-    @Test public void gsp_10() {
-        try {
-            HttpOp.execHttpDelete(gspServiceURL) ;
-            fail("Expected 405") ;
-        } catch (HttpException ex) {
-            assertEquals(ex.getResponseCode(), HttpSC.METHOD_NOT_ALLOWED_405) ;
-        }
-    }
-        
-    @Test public void gsp_11() {
-        
-        String s1 = HttpOp.execHttpGetString(gspServiceURL, WebContent.contentTypeNQuads) ;
-        assertTrue(s1.isEmpty()) ;
-        
-        HttpOp.execHttpPost(gspServiceURL, WebContent.contentTypeTriG, datasetString) ;
-        String s2 = HttpOp.execHttpGetString(gspServiceURL, WebContent.contentTypeNQuads) ;
-        assertFalse(s2.isEmpty()) ;
-        
-        String s4 = HttpOp.execHttpGetString(defaultGraphURL, WebContent.contentTypeNTriples) ;
-        assertFalse(s4.isEmpty()) ;
-    }
-}
-

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki2/testing/config-ds-1.ttl
----------------------------------------------------------------------
diff --git a/jena-fuseki2/testing/config-ds-1.ttl b/jena-fuseki2/testing/config-ds-1.ttl
deleted file mode 100644
index 8e7a57b..0000000
--- a/jena-fuseki2/testing/config-ds-1.ttl
+++ /dev/null
@@ -1,15 +0,0 @@
-@prefix :        <#> .
-@prefix fuseki:  <http://jena.apache.org/fuseki#> .
-@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-
-@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
-
-<#service1> rdf:type fuseki:Service ;
-    # URI of the dataset -- http://host:port/ds
-    fuseki:name                        "test-ds2" ; 
-    fuseki:serviceQuery                "sparql" ;
-    fuseki:dataset                     <#emptyDataset> ;
-    .
-
-<#emptyDataset> rdf:type ja:RDFDataset .

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/DEPENDENCIES
----------------------------------------------------------------------
diff --git a/jena-iri/DEPENDENCIES b/jena-iri/DEPENDENCIES
deleted file mode 100644
index 717b8ad..0000000
--- a/jena-iri/DEPENDENCIES
+++ /dev/null
@@ -1,13 +0,0 @@
-This file lists the dependences for the Jena IRI Library.
-  Version numbers are given in the POM file for a particular distribution. 
-
-JUnit : http://junit.org/
-  Common Public License - v 1.0
-
-In addition, code is generated for the project using JFlex.
-JFlex is not needed at runtime.
-
-JFlex
-  http://jflex.de/
-  http://sourceforge.net/projects/jflex/
-  GNU General Public License (GPL)

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/Jena-IRI-changes.txt
----------------------------------------------------------------------
diff --git a/jena-iri/Jena-IRI-changes.txt b/jena-iri/Jena-IRI-changes.txt
deleted file mode 100644
index e560fb7..0000000
--- a/jena-iri/Jena-IRI-changes.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-
-This is an OLD file, relevant to version 0.3 and earlier.
-
-This is a list of changes to the Jena code base
-motivated by the new IRI code.
-================================================
-
-    public void testBadProperty1() throws IOException {
-        checkPropURI("http:/a.b/", null, null, BadPropURI);
-    }
-    
-to
-       
-            public void testBadProperty1() throws IOException {
-        checkPropURI("http://x/a.b/", null, null, BadPropURI);
-    }
-    
-    
- Changed two of the tainting tests concerning behaviour with badURIs
- ht^tp: and http://ww^w/  despite being bad can be used as base.
- 
- Changed a tainting text with a relative resolution against mailto
- 
- ht#tp://jjc3.org/demo.mp3#frag is treated as an ill-formed *relative* URI, rather
- than simply ill-formed.
- 
- 
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/LICENSE
----------------------------------------------------------------------
diff --git a/jena-iri/LICENSE b/jena-iri/LICENSE
deleted file mode 100644
index 67db858..0000000
--- a/jena-iri/LICENSE
+++ /dev/null
@@ -1,175 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/NOTICE
----------------------------------------------------------------------
diff --git a/jena-iri/NOTICE b/jena-iri/NOTICE
deleted file mode 100644
index e87f3af..0000000
--- a/jena-iri/NOTICE
+++ /dev/null
@@ -1,11 +0,0 @@
-Apache Jena - IRI module
-Copyright 2011, 2012, 2013, 2014 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-Portions of this software were originally based on the following:
-  - Copyright 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
-  - Copyright 2010, 2011 Epimorphics Ltd.
-  - Copyright 2010, 2011 Talis Systems Ltd.
-These have been licensed to the Apache Software Foundation under a software grant.

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/NotesAFS.txt
----------------------------------------------------------------------
diff --git a/jena-iri/NotesAFS.txt b/jena-iri/NotesAFS.txt
deleted file mode 100644
index 040e5af..0000000
--- a/jena-iri/NotesAFS.txt
+++ /dev/null
@@ -1,77 +0,0 @@
-===
-Changes for RFC 1123 sec 2.1
-violations.xml: comment out IP_V4_HAS_FOUR_COMPONENTS
-PattenCompiler: remove entry using IP_V4_HAS_FOUR_COMPONENTS in for ipV4Address[]
-
-=== JFlex
-
-Build:
-See dev.buildlexer.MainGenerateLexers which does step 1-3
-
-1/ BuildViolationCodes.main(args) (violations.xml => Java code)
-
-2/ PatternCompiler.main (writes host.jflex)
-
-3/ AbsLexer.main (writes other jflex files)
-
-then refresh in Eclipse.
-
-Edit to remove errors and warnings.
-change yytext to 
-@Override final String yytext()
-
-=== What builds what
-TestCreator:
-  uris.xml -> test.xml
-
-AbsLexerBuilder
-        // violation.xml ==> ViolationCodes
-        BuildViolationCodes.main(args) ;
-        
-        // host.jflex
-        PatternCompilerBuilder.main(args) ;
-        
-        // Other jflex files
-        AbsLexerBuilder.main(args) ;
-====
-
-
-/*
-host => (@{regname})
-regname => ((@{label}\\.)*@{label}\\.?)
-label => (@{labelPrefix}(@{labelInside}@{labelPostfix})?)
-labelInside => (@{labelSingleDashInside}?)
-labelPrefix => (@{labelChar})
-labelChar => (@{unreservedDNSLabel})
-unreservedDNSLabel => (@{letterDigit}|_)
-letterDigit => ([a-z0-9])
-labelSingleDashInside => ((@{labelChar}+-)*@{labelChar}+)
-labelPostfix => (@{labelChar})
-*/
-
---------------
-
-[[
-RFC 1123, sec 2.1
-
-      The syntax of a legal Internet host name was specified in RFC-952
-      [DNS:4].  One aspect of host name syntax is hereby changed: the
-      restriction on the first character is relaxed to allow either a
-      letter or a digit.  Host software MUST support this more liberal
-      syntax.
-]]
-
-I can't find an updated official grammar and I only came across by googling
-to get the authoritive text to show it was illegal.  I happened on a nice
-web page of DNS standards which mentioned it.
-
-RFC 3986, sec 3.2.2, talks about the ambiguity.
-
-The 1123 text isn't entirely clear - does it mean the first char of the
-whole DNS host name or every component?
-
-So a host of "1752" is now legal (albeit silly and unlikely to work very well).
------------------
-IP_V4_OCTET_RANGE
-IP_V4_HAS_FOUR_COMPONENTS 
-are no longer MUST

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/Patches/Applied/Fix1.txt
----------------------------------------------------------------------
diff --git a/jena-iri/Patches/Applied/Fix1.txt b/jena-iri/Patches/Applied/Fix1.txt
deleted file mode 100644
index 800a031..0000000
--- a/jena-iri/Patches/Applied/Fix1.txt
+++ /dev/null
@@ -1,95 +0,0 @@
-http://tech.groups.yahoo.com/group/jena-dev/message/40853
-------------------------
-
-And here goes the fix (I gues it was developers mistype to return instead of modifying the input buffer) 	
-Buggy code is remd out:
-
-private String mergePathsRemoveDots(String basePath) {
-        int slash = basePath.lastIndexOf('/');
-        StringBuffer output = new StringBuffer();
-        if (slash!=-1)
-            output.append(basePath.substring(0,slash+1));
-        if (base.dotsOK()&&rel.dotsOK()) {
-            String relPath = rel.getRawPath();
-
-            if (relPath.startsWith("./")) {
-                //return basePath + relPath.substring(2);
-            	relPath = relPath.substring(2); //fix by marcus
-            }
-
-            while (relPath.startsWith("../")) {
-                relPath = relPath.substring(3);
-                removeLastSeqment2(output);
-            }
-            if (relPath.equals("..") ) {
-                relPath = "";
-                removeLastSeqment2(output);
-            }
-            if (relPath.equals(".") ) {
-                relPath = "";
-            }
-            output.append(relPath);
-            return output.toString();
-        }
-        output.append(rel.getRawPath());
-        return removeDotSegments(output.toString());
-    }
-
------Original Message-----
-From: Marko Martin 
-Sent: Thursday, July 16, 2009 9:46 AM
-To: 'jena-dev@groups.yahoo.com'
-Subject: IRI.resolve ./ question - maybe lame question maybe bug report ?
-
-Hi there.
-We are evaluating Java APIs conforming to (or claiming conformance) 
-RFC 3986.
-
-Your API and implementation has been evaluated as the BEST.
-
-Pseudocode:
-
-IRI(http://a/b/c/d;p?q).resolve(./) should yeald http://a/b/c/
-Correct ? (based on RFC  down there)
-
-However, regardless How do I write the code I always get 
-http://a/b/c/d;p
-
-no warnings of violations
-
-Please any comments on this issue ? (even JDK buggy java.net.URI resolves this as expected)
-
-RFC:
-
-5.4 Reference Resolution Examples 
-
-Within a representation with a well defined base URI of 
-http://a/b/c/d;p?q 
-a relative reference is transformed to its target URI as follows. 
-________________________________________
-Page 36 
-5.4.1 Normal Examples 
-
-      "./"            =  "http://a/b/c/"
-
-------------------------
-My code snipped: 
-
-String base="http://a/b/c/d;p?q";
-String reference="./";
-
-String expected="http://a/b/c/";
-IRIFactory fact=IRIFactory.iriImplementation(); 
-
-IRI b=fact.construct(base); 
-IRI r=fact.construct(reference); 
-IRI	o=b.resolve(r);
-
-out.write(o.toString());
-out.write("<br>");
-out.write(r.toString());
-out.write("<br>");
-out.write(expected+"<hr>"+o.toString().equals(expected));
-out.write("<hr>"+b.hasViolation(true));
-out.write("<hr>"+r.hasViolation(true));
-out.write("<hr>"+o.hasViolation(true));

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/jena-iri/RELEASE_NOTES.txt b/jena-iri/RELEASE_NOTES.txt
deleted file mode 100644
index 9a45fd1..0000000
--- a/jena-iri/RELEASE_NOTES.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-
-Release Notes:
-
-iri-0.9.1:
-Remove icu4j dependency.
-
-iri-0.7:
-Java5 compatible.
-
-iri-0.6:
-Convert to Java6
-
-iri-0.4: 
-  fixed mailto scheme rules
-  set file: to allow sameSchemeRelativeRefs in jenaImplementation
-  fixed bug in relativize code
-  This version is used by Jena 2.5.3.
-  Added some documentation.
-
-iri-0.3:  First released version
-
-This version is released to provide a stable
-version of the source for Jena 2.5.
-It is not intended for use as a general purpose library.
-In particular, many of the methods are unimplemented;
-the documentation is inadequate.
-Partial support may be available on 
-jena-dev@yahoogroups.com.
-
-iri-0.2:  Version in Jena 2.4
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/TODO.txt
----------------------------------------------------------------------
diff --git a/jena-iri/TODO.txt b/jena-iri/TODO.txt
deleted file mode 100644
index d5ae959..0000000
--- a/jena-iri/TODO.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-
-General:
-   document
-   assess compliance
-   document level of compliance
-   document how to use JFlex to produce Lexer files.
-   
-Unimplemented features:
-  IRI.ladderEquals
-  ??.withScheme() (in IRIFactoryImpl not sure what doesn't work as a result)
-  Violation. getSpecificationURL()
-  IRI.normalize
-  IRI.getCooked (private: not sure what doesn't work as a result)
-  coping with bad surrogate pairs
-  checking percent encoding with respect to punycode
-  [i.e. can a percent encoded sequence in a hostname be reencoded as punycode?]
-  better coverage of default port numbers
-  IRIFactory.create with 5 or 7 arguments
-  different rules for schemes that respect DNS and those that don't
-  ability to disable such different rules
-  testing with codepoints > 2^16
-  other considerations for unicode > 2.3, and/or java >= 1.5
-  increased coverage of tests for bad or problematic characters
-  IRIFactory.setQueryCharacterRestrictions
-   
-Get file: stuff working well enough for Jena
-IRI.normalize()
-RFRC 2396 and opaque URIs
-
-Bugs:
-   I think some of the specs have been revved since the initial design,
-   
-
-
-   
-
-   
-
-

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/assembly.xml
----------------------------------------------------------------------
diff --git a/jena-iri/assembly.xml b/jena-iri/assembly.xml
deleted file mode 100644
index f30fb96..0000000
--- a/jena-iri/assembly.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-
-<assembly>
-  <id>distribution</id>
-  
-  <baseDirectory>apache-${project.artifactId}-${project.version}</baseDirectory>
-  <formats>
-    <!--
-    <format>tar.gz</format>
-    <format>tar.bz2</format>
-    -->
-    <format>zip</format>
-  </formats>
-
-  <dependencySets>
-    <dependencySet>
-      <unpack>false</unpack>
-      <scope>test</scope>
-      <outputDirectory>lib</outputDirectory>
-    </dependencySet>
-  </dependencySets>
-
-  <fileSets>
-    <fileSet>
-      <includes>
-        <include>README*</include>
-        <include>LICENSE*</include>
-        <include>NOTICE*</include>
-        <include>DEPENDENCIES*</include>
-        <include>ChangeLog.txt</include>
-        <include>pom.xml</include>
-      </includes>
-    </fileSet>
-    
-     <!-- Put sources at the top level -->
-    <fileSet>
-      <directory>${project.build.directory}</directory>
-      <outputDirectory></outputDirectory>
-      <includes>
-        <include>${this.root}-sources.jar</include>
-        <!--<include>${this.root}-test-sources.jar</include>-->
-      </includes>
-    </fileSet>
-
-     <fileSet>
-      <directory>doc</directory>
-      <excludes>
-        <exclude>linkcheck</exclude>
-        <exclude>merge</exclude>
-        <exclude>produce</exclude>
-        <exclude>template.html</exclude>
-	<exclude>javadoc/**</exclude>
-        <exclude>**/_*/**</exclude>
-        <exclude>**/desktop.ini</exclude>
-      </excludes>
-    </fileSet>
-
-    <fileSet>
-      <directory>${project.build.directory}/apidocs</directory>
-      <outputDirectory>doc/javadoc</outputDirectory>
-    </fileSet>
-    
-  </fileSets>
-  
-</assembly>

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/pom.xml
----------------------------------------------------------------------
diff --git a/jena-iri/pom.xml b/jena-iri/pom.xml
deleted file mode 100644
index 94d3182..0000000
--- a/jena-iri/pom.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-
-<!-- POM file for Jena IRI library -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>jena-iri</artifactId>
-  <packaging>jar</packaging>
-  <name>Apache Jena - IRI</name>
-  <version>1.1.2-SNAPSHOT</version>
-    <parent>
-    <groupId>org.apache.jena</groupId>
-    <artifactId>jena-parent</artifactId>
-    <version>12-SNAPSHOT</version>
-    <relativePath>../jena-parent</relativePath>
-  </parent> 
-  
-  <description>
-    The IRI module provides an implementation of the IRI and URI specifications (RFC 3987 and 3986) which are used across Jena in order to comply with relevant W3C specifications for RDF and SPARQL which require conformance to these specifications.
-  </description>
-
-  <dependencies>
-
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-
-  </dependencies>
-
-  <build>
-
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-      </plugin>
-
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <includes>
-            <include>org/apache/jena/iri/test/TestPackage.java</include>
-          </includes>
-        </configuration>
-      </plugin>
-
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-source-plugin</artifactId>
-        <executions> 
-          <execution>
-            <id>attach-sources</id>
-            <goals>
-              <goal>jar-no-fork</goal>
-            </goals>
-          </execution>
-          <!--
-          <execution>
-            <id>attach-sources-test</id>
-            <goals>
-              <goal>test-jar</goal>
-            </goals>
-          </execution>
-          -->
-        </executions>
-      </plugin>
-
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-javadoc-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>attach-javadocs</id>
-            <goals>
-              <goal>jar</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <version>true</version>
-          <show>public</show>
-          <quiet>true</quiet>
-          <encoding>UTF-8</encoding>
-          <windowtitle>Apache Jena IRI </windowtitle>
-          <doctitle>Apache Jena IRI ${project.version}</doctitle>
-          <bottom>Licenced under the Apache License, Version 2.0</bottom>
-        </configuration>
-      </plugin>
-      
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <configuration>
-          <encoding>UTF-8</encoding>
-        </configuration>
-      </plugin>
-      
-    </plugins>
-  </build>
-  
-</project>

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/src-dev/buildlexer/AbsLexerBuilder.java
----------------------------------------------------------------------
diff --git a/jena-iri/src-dev/buildlexer/AbsLexerBuilder.java b/jena-iri/src-dev/buildlexer/AbsLexerBuilder.java
deleted file mode 100644
index 6741a92..0000000
--- a/jena-iri/src-dev/buildlexer/AbsLexerBuilder.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package buildlexer;
-
-import java.io.* ;
-import java.lang.reflect.Method ;
-
-public class AbsLexerBuilder
-{
-    static private long start;   
-    static public void main(String args[]) throws IOException {
-        start = System.currentTimeMillis();
-        // out = new FileWriter("src/main/jflex/org/apache/jena/iri/impl/iri2.jflex");
-        // copy("src/main/main/jflex/org/apache/jena/iri/impl/iri.jflex");
-        outRules("scheme");
-        outRules("userinfo");
-        outRules("xhost");
-        outRules("port");
-        outRules("path");
-        outRules("query");
-        //      outRules("fragment");
-        // out.close();
-        //        
-        // JFlex.Main.main(new
-        // String[]{"src/main/main/jflex/org/apache/jena/iri/impl/iri2.jflex"});
-        System.out.println(System.currentTimeMillis() - start);
-    }
-
-    private static void copy(String fname) throws IOException {
-        Reader in = new FileReader(fname);
-        char buf[] = new char[2048];
-        while (true) {
-            int sz = in.read(buf);
-            if (sz == -1)
-                break;
-            out.write(buf, 0, sz);
-        }
-        in.close();
-    }
-    //  static int count;
-
-    static Writer out;
-
-    static private void outRules(String name) throws IOException {
-        //      count = 0;
-        String jflexFile = "src/main/jflex/org/apache/jena/iri/impl/"+name+".jflex";
-
-        if (name.equals("scheme")|| name.equals("port")) {
-
-        } else {
-            out = new FileWriter("tmp.jflex");
-            copy(jflexFile);
-            jflexFile = "tmp.jflex";
-            copy("src/main/jflex/org/apache/jena/iri/impl/xchar.jflex");
-            out.close();
-        }
-        runJFlex(new String[] { "-d", "src/main/java/org/apache/jena/iri/impl", jflexFile });
-        System.out.println(System.currentTimeMillis() - start);
-
-    }
-    static void runJFlex(String[] strings) {
-        Method main = null;
-        try {
-            Class<?> jflex = Class.forName("JFlex.Main");
-            main = jflex.getMethod("main", new Class[]{
-                strings.getClass()});
-        } catch (Exception e) {
-            System.err.println("Please include JFlex.jar on the classpath.");
-            System.exit(1);
-        } 
-        try {
-            main.invoke(null, new Object[]{strings});
-        } catch (Exception e) {
-            System.err.println("Problem interacting with JFlex");
-            e.printStackTrace();
-            System.exit(2);
-        } 
-
-    }
-
-}
-

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/src-dev/buildlexer/Expansion.java
----------------------------------------------------------------------
diff --git a/jena-iri/src-dev/buildlexer/Expansion.java b/jena-iri/src-dev/buildlexer/Expansion.java
deleted file mode 100644
index 5088b4f..0000000
--- a/jena-iri/src-dev/buildlexer/Expansion.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package buildlexer;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jena.iri.impl.PatternCompiler ;
-import org.apache.jena.iri.impl.VarPattern ;
-
-
-abstract public class Expansion {
-
-    int errors[] = new int[100];
-
-    String comments[] = new String[100];
-    int cIx = 0;
-    int eIx = 0;
-
-    public Expansion() {
-    }
-
-    Map<String, String> doing = new HashMap<String, String>();
-
-    abstract public void doIt(String regex, int eCount, int eCodes[], int cCount, String coms[]);
-
-    public void expand(String data) {
-        int at;
-
-        at = data.indexOf("@{labelI");
-        if ( at==-1 )
-          at = data.indexOf("@{");
-        if (at == -1)
-            doIt(data, eIx, errors, cIx, comments);
-        else {
-//            String prefix = data.substring(0, at);
-            int match = data.indexOf('}', at);
-            String varName = data.substring(at + 2, match);
-            if (doing.containsKey(varName)) {
-//                System.err.println("Possible Recursion: " + varName);
-                String p = doing.get(varName);
-                String nData = data.replaceAll("@\\{" + varName + "\\}", p);
-                expand(nData);
-            } else {
-//                String postfix = data.substring(match + 1);
-                VarPattern vp[] = PatternCompiler.lookup(varName);
-                int eIxBase = eIx;
-                for (int i = 0; i < vp.length; i++) {
-
-                    addErrors(vp[i].errors);
-                    String nData;
-                    String p;
-                    try {
-                        p = vp[i].pattern;
-                        p = p.replaceAll("\\\\", "\\\\\\\\");
-                        p = p.replaceAll("\\$", "\\\\\\$");
-                        p = "(" + p + ")";
-                        doing.put(varName, p);
-                        nData = data.replaceAll("@\\{" + varName + "\\}", p);
-                    } catch (RuntimeException e) {
-                        System.err.println(data);
-                        System.err.println(varName);
-                        System.err.println(vp[i].pattern);
-                        throw e;
-
-                    }
-                    comments[cIx++] = varName + " => " + p;
-                    expand(nData);
-                    eIx = eIxBase;
-                    cIx--;
-                }
-                doing.remove(varName);
-            }
-        }
-    }
-
-    void addErrors(int e[]) {
-        for (int i = 0; i < e.length; i++)
-            errors[eIx++] = e[i];
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/src-dev/buildlexer/MainGenerateLexers.java
----------------------------------------------------------------------
diff --git a/jena-iri/src-dev/buildlexer/MainGenerateLexers.java b/jena-iri/src-dev/buildlexer/MainGenerateLexers.java
deleted file mode 100644
index 73357e3..0000000
--- a/jena-iri/src-dev/buildlexer/MainGenerateLexers.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package buildlexer;
-
-import java.io.File ;
-import java.lang.reflect.Method ;
-import java.util.Iterator ;
-
-import org.apache.jena.iri.IRI ;
-import org.apache.jena.iri.IRIFactory ;
-import org.apache.jena.iri.Violation ;
-import org.apache.jena.iri.impl.BuildViolationCodes ;
-
-
-/** Misc support for building the java files with JFlex.
- * The distribution includes pre-built files - you do not need to perform this
- * stage to rebuild the IRI library from it's source.
- */
-public class MainGenerateLexers
-{
-    static public void main(String args[]) throws Exception
-    {
-        /* File built:
-        LexerHost.java
-        LexerPath.java
-        LexerPort.java
-        LexerQuery.java
-        LexerScheme.java
-        LexerUserinfo.java
-        LexerXHost.java
-        */
-        
-        // violation.xml ==> ViolationCodes
-        BuildViolationCodes.main(args) ;
-        
-        // host.jflex
-        PatternCompilerBuilder.main(args) ;
-        
-        // Other jflex files
-        AbsLexerBuilder.main(args) ;
-        
-        // Now refresh and rebuild.
-        // Need to edit result to remove "private" on yytext in each subparser
-        // Then add all the @Overrides (Eclipse quick fix) to remove warnings.
-        
-        try {
-            new File("tmp.jflex").delete() ;
-        } catch (Throwable ex) {}
-    }
-
-    static void checkOne(String s)
-    {
-        IRI iri = IRIFactory.iriImplementation().create(s) ;
-        System.out.println(">> "+iri) ;
-        for ( Iterator<Violation> iter = iri.violations(true) ; iter.hasNext() ; )
-        {
-            Violation v = iter.next();
-            System.out.println(v.getShortMessage()) ;
-        }
-        System.out.println("<< "+iri) ;
-        System.out.println() ;
-    }
-    
-    public static void runJFlex(String[] strings)
-    {
-        Method main = null ;
-        try
-        {
-            Class<? > jflex = Class.forName("JFlex.Main") ;
-            main = jflex.getMethod("main", new Class[]{strings.getClass()}) ;
-        } catch (Exception e)
-        {
-            System.err.println("Please include JFlex.jar on the classpath.") ;
-            System.exit(1) ;
-        }
-        
-        try
-        {
-            main.invoke(null, new Object[]{strings}) ;
-        } catch (Exception e)
-        {
-            System.err.println("Problem interacting with JFlex") ;
-            e.printStackTrace() ;
-            System.exit(2) ;
-        }
-    }
-}
-

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/src-dev/buildlexer/PatternCompilerBuilder.java
----------------------------------------------------------------------
diff --git a/jena-iri/src-dev/buildlexer/PatternCompilerBuilder.java b/jena-iri/src-dev/buildlexer/PatternCompilerBuilder.java
deleted file mode 100644
index 1eb177d..0000000
--- a/jena-iri/src-dev/buildlexer/PatternCompilerBuilder.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-// TODO e-mail uri list about . at end of domain name
-// TODO e-mail uri list about IPv4 vs host:
-// If host matches the rule for IPv4address, then it should be considered an IPv4 address literal and not a reg-name. 
-
-package buildlexer;
-
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Reader;
-import java.io.Writer;
-import java.lang.reflect.Field;
-
-import org.apache.jena.iri.ViolationCodes ;
-
-
-public class PatternCompilerBuilder implements ViolationCodes {
-
-    private static final class ExpandAndOutput extends Expansion {
-        int exc[];
-        int sub[];
-        boolean incExc;
-        /**
-         * output those for which no errors in exclude,
-         * and all errors in sub[] occur
-         * or the inverse: at least one error in exclude
-         * occurs, and at least one error in sub doesn't
-         * @param exclude
-         */
-        ExpandAndOutput(int exclude[], int subset[], boolean incExc ) {
-           exc = exclude;
-           sub = subset;
-           this.incExc = incExc;
-        }
-        int ruleCount = 1;
-
-        @Override
-        public void doIt(String regex, int eCount, int[] eCodes, int cCount,
-                String c[]) {
-            
-            if (incExc == 
-                ( (!overlap(exc,eCount, eCodes)) &&
-                  subset(sub,eCount, eCodes) ) )
-            try {
-                out.write("/*\n");
-                for (int j = 0; j < cCount; j++) {
-                    out.write(c[j]);
-                    out.write('\n');
-                }
-                out.write("*/\n");
-        
-                out.write(regex);
-                out.write(" {\n");
-                count++;
-                out.write("rule("+count+"); ");
-                for (int i = 0; i < eCount; i++)
-                    out.write("error(" + errorCodeName(eCodes[i]) + ");");
-                out.write("}\n");
-            } catch (IOException e) {
-                throw new RuntimeException(e);
-            }
-        }
-        private boolean subset(int ee[], int el, int[]eCodes) {
-            for (int i=0;i<ee.length;i++)
-                if (!in(ee[i],el,eCodes))
-                    return false;
-            return true;
-        }
-        private boolean overlap(int ee[], int el, int[]eCodes) {
-            for (int i=0;i<ee.length;i++)
-                if (in(ee[i],el,eCodes))
-                    return true;
-            return false;
-        }
-        private boolean in(int e0, int eCount, int[] eCodes) {
-            for (int i=0; i<eCount; i++)
-                if (eCodes[i]==e0)
-                     return true;
-            return false;
-        }
-    }
-
-    static long start;
-
-    static public void main(String args[]) throws IOException {
-        start = System.currentTimeMillis();
-        // out = new FileWriter("src/main/java/org/apache/jena/iri/impl/iri2.jflex");
-        // copy("src/main/java/org/apache/jena/iri/impl/iri.jflex");
-//        outRules("scheme");
-//        outRules("userinfo");
-        outRules("host");
-//        outRules("port");
-//        outRules("path");
-//        outRules("query");
-//        outRules("fragment");
-        // out.close();
-        //        
-        // JFlex.Main.main(new
-        // String[]{"src/main/java/com/hp/hpl/jena/iri/impl/iri2.jflex"});
-        System.out.println(System.currentTimeMillis() - start);
-    }
-
-    private static void copy(String fname) throws IOException {
-        Reader in = new FileReader(fname);
-        char buf[] = new char[2048];
-        while (true) {
-            int sz = in.read(buf);
-            if (sz == -1)
-                break;
-            out.write(buf, 0, sz);
-        }
-        in.close();
-    }
-
-    static String eCodeNames[];
-
-    static String errorCodeName(int j) {
-		if (eCodeNames == null) {
-            eCodeNames = constantsFromClass(ViolationCodes.class, 200);
-        }
-        return eCodeNames[j];
-    }
-
-	static String[] constantsFromClass(Class<?> cl, int cnt) {
-		String[] names;
-		names = new String[cnt];
-		Field f[] = cl.getDeclaredFields();
-		for (int i = 0; i < f.length; i++)
-		    try {
-		        names[f[i].getInt(null)] = f[i].getName();
-		    } catch (IllegalArgumentException e) {
-		        e.printStackTrace();
-		    } catch (IllegalAccessException e) {
-		        e.printStackTrace();
-		    }
-		return names;
-	}
-    
-    static int count;
-
-    static Writer out;
-
-    static private void outRules(String name) throws IOException {
-        count = 0;
-        // if (true) throw new RuntimeException();
-        out = new FileWriter("src/main/jflex/org/apache/jena/iri/impl/"+name+".jflex");
-        copy("src/main/jflex/org/apache/jena/iri/impl/iri.jflex");
-        out.write("%class Lexer");
-        out.write(name.substring(0, 1).toUpperCase());
-        out.write(name.substring(1));
-        out.write("\n%%\n");
-        int exc1[]=
-            new int[]{DOUBLE_DASH_IN_REG_NAME,NOT_DNS_NAME};
-        int empty[]= new int[0];
-        int sub1[] = new int[]{ACE_PREFIX};
-        //        int sub2[] = new int[]{DOUBLE_DASH_IN_REG_NAME,ACE_PREFIX};
-        int sub4[] = new int[]{DOUBLE_DASH_IN_REG_NAME};
-        int sub3[] = new int[]{NOT_DNS_NAME};
-        
-        new ExpandAndOutput(exc1,empty,true).expand("@{" + name + "}");
-        //   new ExpandAndOutput(empty,sub2,true).expand("@{" + name + "}");
-        new ExpandAndOutput(sub1,sub4,true).expand("@{" + name + "}");
-        new ExpandAndOutput(empty,sub3,true).expand("@{" + name + "}");
-
-        out.write("\n");
-        System.out.println(name + ": " + count + " expansions");
-        out.close();
-
-        MainGenerateLexers.runJFlex(new String[] { "-d", "src/main/java/org/apache/jena/iri/impl", "src/main/jflex/org/apache/jena/iri/impl/"+name+".jflex" });
-        System.out.println(System.currentTimeMillis() - start);
-
-    }
-    /*
-     * 
-     * Unicode LTR stuff:
-     * 
-     * 200E ????-??- ????? ???? 200F ?????-??-???? ???? 202A ????-??-?????
-     * ????????? 202B ?????-??-???? ????????? 202C ??? ??????????? ??????????
-     * 202D ????-??-????? ???????? 202E ?????-??-???? ????????
-     * 
-     * XSD preserve No normalization is done, the value is not changed (this is
-     * the behavior required by [XML 1.0 (Second Edition)] for element content)
-     * replace All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage
-     * return) are replaced with #x20 (space) collapse After the processing
-     * implied by replace, contiguous sequences of #x20's are collapsed to a
-     * single #x20, and leading and trailing #x20's are removed.
-     * 
-     * 
-     * <xs:simpleType name="anyURI" id="anyURI"> <xs:annotation> <xs:appinfo>
-     * <hfp:hasFacet name="length"/> <hfp:hasFacet name="minLength"/>
-     * <hfp:hasFacet name="maxLength"/> <hfp:hasFacet name="pattern"/>
-     * <hfp:hasFacet name="enumeration"/> <hfp:hasFacet name="whiteSpace"/>
-     * <hfp:hasProperty name="ordered" value="false"/> <hfp:hasProperty
-     * name="bounded" value="false"/> <hfp:hasProperty name="cardinality"
-     * value="countably infinite"/> <hfp:hasProperty name="numeric"
-     * value="false"/> </xs:appinfo> <xs:documentation
-     * source="http://www.w3.org/TR/xmlschema-2/#anyURI"/> </xs:annotation>
-     * <xs:restriction base="xs:anySimpleType"> <xs:whiteSpace fixed="true"
-     * value="collapse" id="anyURI.whiteSpace"/> </xs:restriction>
-     * </xs:simpleType>
-     * 
-     * XML 1.0
-     * 
-     * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
-     * [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate
-     * blocks, FFFE, and FFFF.
-     * 
-     * 
-     * Note:
-     * 
-     * Document authors are encouraged to avoid "compatibility characters", as
-     * defined in section 6.8 of [Unicode] (see also D21 in section 3.6 of
-     * [Unicode3]). The characters defined in the following ranges are also
-     * discouraged. They are either control characters or permanently undefined
-     * Unicode characters:
-     * 
-     * [#x7F-#x84], [#x86-#x9F], [#xFDD0-#xFDDF], [#1FFFE-#x1FFFF],
-     * [#2FFFE-#x2FFFF], [#3FFFE-#x3FFFF], [#4FFFE-#x4FFFF], [#5FFFE-#x5FFFF],
-     * [#6FFFE-#x6FFFF], [#7FFFE-#x7FFFF], [#8FFFE-#x8FFFF], [#9FFFE-#x9FFFF],
-     * [#AFFFE-#xAFFFF], [#BFFFE-#xBFFFF], [#CFFFE-#xCFFFF], [#DFFFE-#xDFFFF],
-     * [#EFFFE-#xEFFFF], [#FFFFE-#xFFFFF], [#10FFFE-#x10FFFF].
-     * 
-     * 
-     * XML 1.1 [Definition: A parsed entity contains text, a sequence of
-     * characters, which may represent markup or character data.] [Definition: A
-     * character is an atomic unit of text as specified by ISO/IEC 10646
-     * [ISO/IEC 10646]. Legal characters are tab, carriage return, line feed,
-     * and the legal characters of Unicode and ISO/IEC 10646. The versions of
-     * these standards cited in A.1 Normative References were current at the
-     * time this document was prepared. New characters may be added to these
-     * standards by amendments or new editions. Consequently, XML processors
-     * MUST accept any character in the range specified for Char.] Character
-     * Range [2] Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /*
-     * any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. * /
-     * [2a] RestrictedChar ::= [#x1-#x8] | [#xB-#xC] | [#xE-#x1F] | [#x7F-#x84] |
-     * [#x86-#x9F]
-     * 
-     * The mechanism for encoding character code points into bit patterns MAY
-     * vary from entity to entity. All XML processors MUST accept the UTF-8 and
-     * UTF-16 encodings of Unicode [Unicode]; the mechanisms for signaling which
-     * of the two is in use, or for bringing other encodings into play, are
-     * discussed later, in 4.3.3 Character Encoding in Entities.
-     * 
-     * Note:
-     * 
-     * Document authors are encouraged to avoid "compatibility characters", as
-     * defined in Unicode [Unicode]. The characters defined in the following
-     * ranges are also discouraged. They are either control characters or
-     * permanently undefined Unicode characters:
-     * 
-     * [#x7F-#x84], [#x86-#x9F], [#xFDD0-#xFDDF], [#1FFFE-#x1FFFF],
-     * [#2FFFE-#x2FFFF], [#3FFFE-#x3FFFF], [#4FFFE-#x4FFFF], [#5FFFE-#x5FFFF],
-     * [#6FFFE-#x6FFFF], [#7FFFE-#x7FFFF], [#8FFFE-#x8FFFF], [#9FFFE-#x9FFFF],
-     * [#AFFFE-#xAFFFF], [#BFFFE-#xBFFFF], [#CFFFE-#xCFFFF], [#DFFFE-#xDFFFF],
-     * [#EFFFE-#xEFFFF], [#FFFFE-#xFFFFF], [#10FFFE-#x10FFFF].
-     */
-
-}

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/src-dev/dev/ReportsIRI.java
----------------------------------------------------------------------
diff --git a/jena-iri/src-dev/dev/ReportsIRI.java b/jena-iri/src-dev/dev/ReportsIRI.java
deleted file mode 100644
index 6b5ea04..0000000
--- a/jena-iri/src-dev/dev/ReportsIRI.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package dev;
-
-public class ReportsIRI
-{
-    public static void main(String ... args)
-    {
-        
-    }
-}

http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-iri/src-dev/dev/RunIRI.java
----------------------------------------------------------------------
diff --git a/jena-iri/src-dev/dev/RunIRI.java b/jena-iri/src-dev/dev/RunIRI.java
deleted file mode 100644
index a866067..0000000
--- a/jena-iri/src-dev/dev/RunIRI.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package dev;
-
-import java.util.Iterator ;
-
-import org.apache.jena.iri.IRI ;
-import org.apache.jena.iri.IRIFactory ;
-import org.apache.jena.iri.Violation ;
-
-
-public class RunIRI
-{
-    public static void main(String... argv)
-    {
-        processIRI("file:///base/dir/a~b") ;
-    }
-    
-    
-    private static void processIRI(String iriStr)
-    {
-        IRI iri = IRIFactory.iriImplementation().create(iriStr) ;
-        System.out.println(iri) ;
-        System.out.println("Relative: "+iri.isRelative()) ;
-
-        Iterator<Violation> vIter = iri.violations(true) ;
-        for ( ; vIter.hasNext() ; )
-        {
-            System.out.println("** "+vIter.next().getShortMessage()) ;
-        }
-        System.out.println(iriStr + " ==> "+iri) ;
-
-        System.exit(0) ;
-    }
-
-}


Mime
View raw message