Is it possible use ";" on n3 triples?

6 views
Skip to first unread message

Mi

unread,
Sep 20, 2010, 2:40:42 PM9/20/10
to rdfQuery
I would like know if there is a way to use ";" on triples as below:

@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ns: <http://www.example.org/ns/> .
_:book1 dc:title "SPARQL Tutorial";
ns:price 42 .

I tried make it on following way:

$.rdf.databank()
.prefix('dc', 'http://purl.org/dc/elements/1.1/')
.prefix('ns', 'http://www.example.org/ns/')
.add('_:book1 dc:title "SPARQL Tutorial" ;ns:price 42.')

But I get the error: uncaught exception: Bad Triple: Couldn't parse
string _:book1 dc:title "SPARQL Tutorial" ;ns:price 42.
Reply all
Reply to author
Forward
0 new messages