Dear all,

Testing the 0.2.1. snapshot of the Fuseki distribution from the apache respository, I ran into the following curious problem:

I have an N-triples file nace-sample.nt which looks like this:

<http://sws.ifi.uio.no/nace/SN2007/01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . <http://sws.ifi.uio.no/nace/SN2007/01> <http://www.w3.org/2000/01/rdf-schema#label>"Jordbruk og tjenester tilknyttet jordbruk, jakt og viltstell"@nb. <http://sws.ifi.uio.no/nace/SN2007/01> <http://www.w3.org/2000/01/rdf-schema#comment>"SN2007 Næringskode: 01"@nb. <http://sws.ifi.uio.no/nace/SN2007/01> <http://purl.org/dc/terms/title> "Jordbruk og tjenester tilknyttet jordbruk, jakt og viltstell"@nb. <http://sws.ifi.uio.no/nace/SN2007/01><http://sws.ifi.uio.no/vocab/nace/SN2007#nace> "01"^^<http://www.w3.org/2001/XMLSchema#String>. <http://sws.ifi.uio.no/nace/SN2007/01><http://sws.ifi.uio.no/vocab/nace/SN2007#level_id> "2"^^<http://www.w3.org/2001/XMLSchema#int>. <http://sws.ifi.uio.no/nace/SN2007/01><http://sws.ifi.uio.no/vocab/nace/SN2007#short_title> "Jordbruk, tilhør. tjenester, jakt"@nb. <http://sws.ifi.uio.no/nace/SN2007/01><http://sws.ifi.uio.no/vocab/nace/SN2007#medium_title> "Jordbruk og tjenester tilknyttet jordbruk, jakt og viltstell"@nb. <http://sws.ifi.uio.no/nace/SN2007/01.1> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>. <http://sws.ifi.uio.no/nace/SN2007/01.11> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>. <http://sws.ifi.uio.no/nace/SN2007/01.110> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>. <http://sws.ifi.uio.no/nace/SN2007/01.12> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>. <http://sws.ifi.uio.no/nace/SN2007/01.120> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>. <http://sws.ifi.uio.no/nace/SN2007/01.13> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>. <http://sws.ifi.uio.no/nace/SN2007/01.130> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://sws.ifi.uio.no/nace/SN2007/01>.

I validated this file with RIOT, so it should be ok. Since I want to persist data in TDB I do:

mkdir DB

followed by

./fuseki-server --update --loc=DB /dataset

and

./s-put http://localhost:3030/dataset/data default nace-sample.n3

The server returns a 204 No Content, so again everything should be fine. Indeed using the Web-gui that ships with fuseki
'SELECT * WHERE {?s ?p ?o}' returns the table

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| s | p | o |
===========================================================================================================================================================================
| <http://sws.ifi.uio.no/nace/SN2007/01.13> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://sws.ifi.uio.no/vocab/nace/SN2007#medium_title> | "Jordbruk og tjenester tilknyttet jordbruk, jakt og viltstell"@nb | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://sws.ifi.uio.no/vocab/nace/SN2007#short_title> | "Jordbruk, tilhør. tjenester, jakt"@nb | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://sws.ifi.uio.no/vocab/nace/SN2007#level_id> | 2 | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://sws.ifi.uio.no/vocab/nace/SN2007#nace> | "01"^^<http://www.w3.org/2001/XMLSchema#String> | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://purl.org/dc/terms/title> | "Jordbruk og tjenester tilknyttet jordbruk, jakt og viltstell"@nb | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://www.w3.org/2000/01/rdf-schema#comment> | "SN2007 Næringskode: 01"@nb | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://www.w3.org/2000/01/rdf-schema#label> | "Jordbruk og tjenester tilknyttet jordbruk, jakt og viltstell"@nb | | <http://sws.ifi.uio.no/nace/SN2007/01> | <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> | <http://www.w3.org/2002/07/owl#Class> | | <http://sws.ifi.uio.no/nace/SN2007/01.1> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> | | <http://sws.ifi.uio.no/nace/SN2007/01.120> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> | | <http://sws.ifi.uio.no/nace/SN2007/01.11> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> | | <http://sws.ifi.uio.no/nace/SN2007/01.110> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> | | <http://sws.ifi.uio.no/nace/SN2007/01.12> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> | | <http://sws.ifi.uio.no/nace/SN2007/01.130> | <http://www.w3.org/2000/01/rdf-schema#subClassOf> | <http://sws.ifi.uio.no/nace/SN2007/01> |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Now, if I first shut down fuseki and then do:

./fuseki-server --desc=tdb.ttl /dataset

where tdb.ttl is the config file that ships with the distro, then I would expect the data to still be accessible over the same URL. Nevertheless, this time the very same query returns


-------------
| s | p | o |
=============
|   |   |   |
|   |   |   |
|   |   |   |
|   |   | 2 |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
|   |   |   |
-------------


.. so the TDB instance is corrupt it seems.

I suspect it is of some significance that this does not (at least not so far) happen if I load an xml/rdf or .ttl file. However, as I am outputting RDF from XSLT I'd like to use N-Triples. Help is greatly appreciated.

Best,

Audun Stolpe

Reply via email to