在命名圖中儲存資料

PREFIX    rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX    owl: <http://www.w3.org/2002/07/owl#> 
PREFIX schema: <http://schema.org/> 
PREFIX   foaf: <http://xmlns.com/foaf/0.1/>
   
WITH <urn:this:database:doc>
INSERT { <#relatedTo> a                     rdf:Property, owl:ObjectProperty ;
                      rdfs:label            "relatedTo"                      ;
                      rdfs:domain           rdfs:Resource                    ;
                      rdfs:range            xsd:anyURI                       .
         foaf:knows rdfs:subPropertyOf      <#relatedTo>                     ;
                    owl:equivalentProperty  schema:knows                     . 
         <#this>    a                       foaf:Person                      ; 
                    schema:name             "John Doe"                . 
         <#that>    a                       foaf:Person                      ; 
                    schema:name             "Jane Doe"                  . 
       }