Reputation: 8960
I've just started looking at Semantic Web and there's one thing I'm a little uncertain of:
Are Turtle, JSON-LD (and others like Trig) simply ways to write RDF in their own respective syntaxes?
From what I understand once its in some RDF format, I can happily run SPARQL queries - or is there more to their differences, like specific use cases?
Regards.
Upvotes: 2
Views: 1104
Reputation: 925
RDF-Turtle and JSON-LD are really notations for inscribing RDF sentences to documents.
RDF Documents may reside on a Filesystem or be managed by a DBMS, Quad- or Triple-store.
SPARQL is a Declarative Query Language for performing Data Definition and Data Manipulation operations on Data Represented in RDF (i.e., Relations represented as subject->predicate->object 3-tuples).
SPARQL is handled by a SPARQL Processor (or Engine) that is typically a feature of an RDF-supporting DBMS, Quad- or Triple store.
You ability to use SPARQL is totally unaffected by your RDF being created using RDF-Turtle or JSON-LD notations.
One final thing, the body of a SPARQL Query is actually RDF-Turtle plus additional support of variables as another mechanism for entity denotation.
Upvotes: 2