njh / redstore

RedStore is a lightweight RDF triplestore written in C using the Redland library.
https://www.aelius.com/njh/redstore/
GNU General Public License v3.0
62 stars 6 forks source link

Graph not created when TriG file loaded at startup #51

Open matthewmarkus opened 10 years ago

matthewmarkus commented 10 years ago

Here are the contents of test.trig:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://example.com/schema/> .

<http://example.com/graph/tbox> {

    :Thing a rdfs:Class ;
        rdfs:comment "A thing." .

}

If we load this file into redstore via the '-f' option, no graphs are found on a query:

sparql-query http://localhost:8080/sparql 'SELECT DISTINCT ?g
WHERE {
  GRAPH ?g {
    ?s ?p ?o
  }
}'
┌────┐
│ ?g │
├────┤
└────┘