Source

misc-scite-n3 / example.ttl

Full commit
# Some Turtle...

@prefix :      <http://example.com/> .
@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#> .

<#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/> . }