SPARQL | HTML Microdata document
This HTML5 document contains 44 embedded RDF statements represented using HTML+Microdata notation.
The embedded RDF content will be recognized by any processor of HTML5 Microdata.
Namespace Prefixes
Prefix IRI
foaf http://xmlns.com/foaf/0.1/
n3 #
sp http://spinrdf.org/sp#
spin http://spinrdf.org/spin#
schema http://schema.org/
rdfs http://www.w3.org/2000/01/rdf-schema#
virtrdf http://www.openlinksw.com/schemas/virtrdf#
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
xsdh http://www.w3.org/2001/XMLSchema#
Statements
Subject Item n3:RoyalPerson
rdf:type
rdfs:Class
rdfs:subClassOf
schema:Person
foaf:Person
rdfs:label
A Royal Person
spin:rule
_:vb51063796
_:vb51063794
_:vb51063795
_:vb51063792
_:vb51063793
_:vb51063790
_:vb51063791
_:vb51063788
_:vb51063789
_:vb51063787
Subject Item _:vb51063787
rdf:type
sp:Construct
sp:text
## A Royal Person must be related to Queen Elizabeth II as a Descendant, Ancestor, or Sibling
CONSTRUCT { ?n a ?this . }
WHERE {
{ ?n rel:descendantOf+|rel:ancestorOf+|rel:siblingOf|^rel:siblingOf <http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom>.
}
}
virtrdf:bnode-row
20
Subject Item _:vb51063788
rdf:type
sp:Construct
sp:text
## Grand Parent Relationship Type
CONSTRUCT { ?this <http://purl.org/vocab/relationship/grandParent> ?x }
WHERE {
{ ?this <http://purl.org/vocab/relationship/parentOf> ?parent .
?parent <http://purl.org/vocab/relationship/parentOf> ?x . }
}
virtrdf:bnode-row
33
Subject Item _:vb51063789
rdf:type
sp:Construct
sp:text
## Ancestor Relationship Type
CONSTRUCT { ?this rel:ancestorOf ?n }
WHERE {
{ ?this rel:parentOf+|^rel:descendantOf ?n . }
}
virtrdf:bnode-row
45
Subject Item _:vb51063790
rdf:type
sp:Construct
sp:text
## Descendant Relationship Type
CONSTRUCT { ?this rel:descendantOf ?n }
WHERE {
{ ?this ^rel:parentOf+ ?n . }
}
virtrdf:bnode-row
57
Subject Item _:vb51063791
rdf:type
sp:Construct
sp:text
## Grand Sibling Relationship Type
CONSTRUCT { ?this rel:siblingOf ?n }
WHERE {
{ [] rel:parentOf ?this, ?n.
FILTER (?n != ?this) .
}
}
virtrdf:bnode-row
68
Subject Item _:vb51063792
rdf:type
sp:Construct
sp:text
## Auntie Relationship Type
CONSTRUCT { ?this <#hasAuntie> ?n }
WHERE {
[] rel:parentOf ?n , ?prnt .
?prnt rel:parentOf ?this .
FILTER (?n != ?prnt)
?n a <#FemalePerson> .
}
virtrdf:bnode-row
81
Subject Item _:vb51063793
rdf:type
sp:Construct
sp:text
## Uncle Relationship Type
CONSTRUCT { ?this <#hasUncle> ?n }
WHERE
{
[] a <#RoyalPerson> ;
rel:parentOf ?this ;
rel:siblingOf ?n .
?n a <#MalePerson> .
}
virtrdf:bnode-row
96
Subject Item _:vb51063794
rdf:type
sp:Construct
sp:text
## Cousin Relationship Type
CONSTRUCT { ?this <#hasCousin> ?cousin }
WHERE {
[] a <#RoyalPerson> ;
rel:parentOf ?this ;
rel:siblingOf [ rel:parentOf ?cousin ] .
}
virtrdf:bnode-row
111
Subject Item _:vb51063795
rdf:type
sp:Construct
sp:text
## Uncle Relationship Type 2 -- more specific
CONSTRUCT { ?this <#hasUncle2> ?n }
WHERE
{
[] rel:parentOf ?n , ?prnt .
?prnt rel:parentOf ?this .
FILTER (?n != ?prnt)
?n a <#MalePerson> .
}
virtrdf:bnode-row
123
Subject Item _:vb51063796
rdf:type
sp:Construct
sp:text
## Cousin Relationship Type 2 -- more specific
CONSTRUCT { ?this <#hasCousin2> ?n }
WHERE {
[] rel:parentOf ?n_prnt, ?this_prnt .
?n_prnt rel:parentOf ?n .
?this_prnt rel:parentOf ?this .
FILTER (?n_prnt != ?this_prnt)
}
virtrdf:bnode-row
139