GraphStore`
GraphStore`

RDFStore

RDFStore[{t1,t2,}]

represents an RDF graph with triples ti.

RDFStore[{t1,t2,},name1{s11,s12,},]

represents an RDF dataset with default graph consisting of the triples ti and named graphs consisting of the triples sij with names namei.

Details

  • RDF stands for Resource Description Framework.
  • Resources are identified by IRIs.
  • Statements about resources are made with triples RDFTriple[subj, pred, obj] where subj is the subject to be described, pred is the predicate and obj is the value.
  • Subjects, predicates and objects are typically IRIs or blank nodes. Objects can also be literals like strings, numbers and Booleans.
  • When querying an RDF dataset using SPARQLSelect[pattern] then pattern is matched against the default graph. SPARQLSelect[SPARQLGraph[name,pattern]] can be used to match pattern against the graph named name.

Examples

open all close all

Basic Examples  (1)

In[1]:=
Click for copyable input

Introduce vocabulary helper functions:

In[2]:=
Click for copyable input

Represent information about Albert Einstein:

In[3]:=
Click for copyable input

Look up the properties used:

In[4]:=
Click for copyable input
Out[4]=

Look up the name and birth date:

In[5]:=
Click for copyable input
Out[5]=

Export in the "Turtle" format:

In[6]:=
Click for copyable input
Out[6]=

Scope  (2)

Properties & Relations  (2)