Commits

Toby Inkster committed f5734fd

better examples

  • Participants
  • Parent commits ea12416

Comments (0)

Files changed (1)

-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix dc: <http://purl.org/dc/terms/> .
-@prefix ex: <http://example.org/stuff/1.0/> .
+# Some Turtle...
 
-<http://www.w3.org/TR/rdf-syntax-grammar>
-  dc:title "RDF/XML Syntax Specification (Revised)"@en ;
-  ex:size 193.4 ;
-  ex:good TRUE ;
-  ex:editor [
-    ex:fullname """Dave "dajobe" Beckett""";
-    ex:homePage <http://purl.org/net/dajobe/>
-  ] . #comment, how are you?
+@prefix dc:		<http://purl.org/dc/terms/> .
+@prefix foaf:	<http://xmlns.com/foaf/0.1/> .
+@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
+@prefix owl:	<http://www.w3.org/2002/07/owl#> .
+@prefix xsd:	<http://www.w3.org/2001/XMLSchema#> .
 
-PREFIX : <http://blah.example.com/>
-SELECT *
-WHERE { ?foo :status true . }
+<#alice> 
+	a foaf:Person ;
+	foaf:name 'Alice'^^xsd:string ;
+	:is-member true ;
+	:membership-number 62901 ;
+	foaf:homepage <http://example.com/> .
+	
+<#aj>
+	a foaf:Person ;
+	foaf:name "A Jones"@en ;
+	foaf:homepage <http://example.com/> .
+
+# Some Notation 3...
+
+{ ?p is foaf:homepage of ?x , ?y . } => { ?x owl:sameAs ?y . } .
+
+# Even some SPARQL...
+
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+SELECT DISTINCT ?person
+FROM NAMED GRAPH <http://example.com/foaf.rdf>
+WHERE { ?person foaf:homepage <http://example.com/> . }