Strabon

changeset 177:8f711989f975

add context in sparql11-tests.nt
author George Garbis <ggarbis@di.uoa.gr>
date Mon May 21 12:54:53 2012 +0300 (2012-05-21)
parents ffd4c17e4ab9
children 3b65d91a4eac
files runtime/src/test/java/eu/earthobservatory/runtime/monetdb/SimpleTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/SimpleTests.java runtime/src/test/resources/simple-tests.nt runtime/src/test/resources/simple-tests.ntriples runtime/src/test/resources/sparql11-tests.nt
line diff
     1.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/SimpleTests.java	Mon May 21 12:28:33 2012 +0300
     1.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/SimpleTests.java	Mon May 21 12:54:53 2012 +0300
     1.3 @@ -28,7 +28,7 @@
     1.4  	@BeforeClass
     1.5  	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
     1.6  	{
     1.7 -		strabon = TemplateTests.beforeClass("/simple-tests.ntriples");
     1.8 +		strabon = TemplateTests.beforeClass("/simple-tests.nt");
     1.9  	}
    1.10  	
    1.11  	@AfterClass
     2.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/postgis/SimpleTests.java	Mon May 21 12:28:33 2012 +0300
     2.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/postgis/SimpleTests.java	Mon May 21 12:54:53 2012 +0300
     2.3 @@ -22,7 +22,7 @@
     2.4  	@BeforeClass
     2.5  	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
     2.6  	{
     2.7 -		strabon = TemplateTests.beforeClass("/simple-tests.ntriples");
     2.8 +		strabon = TemplateTests.beforeClass("/simple-tests.nt");
     2.9  	}
    2.10  	
    2.11  	@AfterClass
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/runtime/src/test/resources/simple-tests.nt	Mon May 21 12:54:53 2012 +0300
     3.3 @@ -0,0 +1,8 @@
     3.4 +<http://example.org/item1> <http://example.org/id> "1"^^<http://www.w3.org/2001/XMLSchema#int>.
     3.5 +<http://example.org/item2> <http://example.org/id> "2"^^<http://www.w3.org/2001/XMLSchema#int>.
     3.6 +<http://example.org/item3> <http://example.org/id> "3"^^<http://www.w3.org/2001/XMLSchema#int>.
     3.7 +<http://example.org/item1> <http://example.org/value> "10"^^<http://www.w3.org/2001/XMLSchema#int>.
     3.8 +<http://example.org/item2> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int>.
     3.9 +<http://example.org/item1> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(1 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    3.10 +<http://example.org/item2> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(2 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    3.11 +<http://example.org/item3> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(3 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
     4.1 --- a/runtime/src/test/resources/simple-tests.ntriples	Mon May 21 12:28:33 2012 +0300
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,8 +0,0 @@
     4.4 -<http://example.org/item1> <http://example.org/id> "1"^^<http://www.w3.org/2001/XMLSchema#int>.
     4.5 -<http://example.org/item2> <http://example.org/id> "2"^^<http://www.w3.org/2001/XMLSchema#int>.
     4.6 -<http://example.org/item3> <http://example.org/id> "3"^^<http://www.w3.org/2001/XMLSchema#int>.
     4.7 -<http://example.org/item1> <http://example.org/value> "10"^^<http://www.w3.org/2001/XMLSchema#int>.
     4.8 -<http://example.org/item2> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int>.
     4.9 -<http://example.org/item1> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(1 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    4.10 -<http://example.org/item2> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(2 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    4.11 -<http://example.org/item3> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(3 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
     5.1 --- a/runtime/src/test/resources/sparql11-tests.nt	Mon May 21 12:28:33 2012 +0300
     5.2 +++ b/runtime/src/test/resources/sparql11-tests.nt	Mon May 21 12:54:53 2012 +0300
     5.3 @@ -0,0 +1,62 @@
     5.4 +<http://example.org#alice> <http://purl.org/dc/elements/1.0/title> "SPARQL Query Language Tutorial".
     5.5 +<http://example.org#carol> <http://purl.org/dc/elements/1.0/title> "SPARQL".
     5.6 +<http://example.org#a> <http://xmlns.com/foaf/0.1/name> "Johnny Lee Outlaw".
     5.7 +<http://example.org#b> <http://xmlns.com/foaf/0.1/name> "Peter Goodguy".
     5.8 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/name> "Alice".
     5.9 +<http://example.org#bob> <http://xmlns.com/foaf/0.1/name> "Bob".
    5.10 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/name> "Alice Foo".
    5.11 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/name> "A. Foo".
    5.12 +<http://example.org#bob> <http://xmlns.com/foaf/0.1/name> "Bob Bar".
    5.13 +<http://example.org#bob> <http://xmlns.com/foaf/0.1/name> "B. Bar".
    5.14 +<http://example.org#carol> <http://xmlns.com/foaf/0.1/name> "Carol Baz".
    5.15 +<http://example.org#carol> <http://xmlns.com/foaf/0.1/name> "C. Baz".
    5.16 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/homepage> <http://work.example.org/alice/>.
    5.17 +<http://example.org#a> <http://xmlns.com/foaf/0.1/mbox> <mailto:jlow@example.com>.
    5.18 +<http://example.org#b> <http://xmlns.com/foaf/0.1/mbox> <mailto:peter@example.org>.
    5.19 +<http://example.org#c> <http://xmlns.com/foaf/0.1/mbox> <mailto:carol@example.org>.
    5.20 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/mbox> <mailto:alice@example.com>.
    5.21 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/mbox> <mailto:alice@work.example>.
    5.22 +<http://example.org#bob> <http://xmlns.com/foaf/0.1/mbox> <mailto:bob@work.example>.
    5.23 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/familyName> "Smith".
    5.24 +<http://example.org#bob> <http://xmlns.com/foaf/0.1/familyName> "Jones".
    5.25 +<http://example.org#carol> <http://xmlns.com/foaf/0.1/familyName> "Smith".
    5.26 +<http://example.org#alice> <http://purl.org/dc/elements/1.0/creator> "Alice".
    5.27 +<http://example.org#bob> <http://purl.org/dc/elements/1.1/creator> "Bob".
    5.28 +<http://example.org#org1> <http://example.org#affiliates> <http://example.org#auth1>.
    5.29 +<http://example.org#org1> <http://example.org#affiliates> <http://example.org#auth2>.
    5.30 +<http://example.org#org2> <http://example.org#affiliates> <http://example.org#auth3>.
    5.31 +<http://example.org#x> <http://example.org/ns#p> "cat"@en.
    5.32 +<http://example.org#y> <http://example.org/ns#p> "42"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.33 +<http://example.org#z> <http://example.org/ns#p> "abc"^^<http://example.org/datatype#specialDatatype>.
    5.34 +<http://example.org#a> <http://example.org#p> "1"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.35 +<http://example.org#b> <http://example.org#p> "3.0"^^<http://www.w3.org/2001/XMLSchema#decimal>.
    5.36 +<http://example.org#a> <http://example.org#q> "1"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.37 +<http://example.org#a> <http://example.org#q> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.38 +<http://example.org#b> <http://example.org#q> "4.0"^^<http://www.w3.org/2001/XMLSchema#decimal>.
    5.39 +<http://example.org#b> <http://example.org#q> "5.0"^^<http://www.w3.org/2001/XMLSchema#decimal>.
    5.40 +<http://example.org#auth1> <http://example.org#writesBook> <http://example.org#book1>.
    5.41 +<http://example.org#auth1> <http://example.org#writesBook> <http://example.org#book2>.
    5.42 +<http://example.org#auth2> <http://example.org#writesBook> <http://example.org#book3>.
    5.43 +<http://example.org#auth3> <http://example.org#writesBook> <http://example.org#book4>.
    5.44 +<http://example.org#book1> <http://example.org#price> "9"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.45 +<http://example.org#book2> <http://example.org#price> "5"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.46 +<http://example.org#book3> <http://example.org#price> "7"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.47 +<http://example.org#book4> <http://example.org#price> "7"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.48 +<http://example.org#johnDoe> <http://xmlns.com/foaf/0.1/surname> "Doe".
    5.49 +<http://example.org#johnDoe> <http://xmlns.com/foaf/0.1/givenName> "John".
    5.50 +<http://example.org#alice> <http://example.com/org#employeeId> "12345"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.51 +<http://example.org#bob> <http://example.com/org#employeeId> "67890"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.52 +<http://example.org#alice> <http://example.com/org#employeeName> "Alice".
    5.53 +<http://example.org#bob> <http://example.com/org#employeeName> "Bob".
    5.54 +<http://example.org#book1> <http://purl.org/dc/elements/1.1/title> "SPARQL Tutorial".
    5.55 +<http://example.org#book2> <http://purl.org/dc/elements/1.1/title> "The Semantic Web".
    5.56 +<http://example.org#bob> <http://purl.org/dc/elements/1.1/title> "SPARQL Protocol Tutorial".
    5.57 +<http://example.org#carol> <http://purl.org/dc/elements/1.1/title> "SPARQL (updated)".
    5.58 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/knows> <http://example.org#bob>.
    5.59 +<http://example.org#alice> <http://xmlns.com/foaf/0.1/knows> <http://example.org#carol>.
    5.60 +<http://example.org#book1> <http://example.org/ns#discount> "0.2"^^<http://www.w3.org/2001/XMLSchema#decimal>.
    5.61 +<http://example.org#book2> <http://example.org/ns#discount> "0.25"^^<http://www.w3.org/2001/XMLSchema#decimal>.
    5.62 +<http://example.org#book1> <http://example.org/ns#price> "42"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.63 +<http://example.org#book2> <http://example.org/ns#price> "23"^^<http://www.w3.org/2001/XMLSchema#integer>.
    5.64 +<http://example.org#alice> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>.
    5.65 +<http://example.org#bob> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>.