30,537
edits
Line 116: | Line 116: | ||
This query generates a list of string values of a particular type of ''as recorded'' data occurring in a DS Record which have not be qualified by an authority value (i.e., reconciled to its linked data equivalent in a Linked Open Vocabulary or Authority). | This query generates a list of string values of a particular type of ''as recorded'' data occurring in a DS Record which have not be qualified by an authority value (i.e., reconciled to its linked data equivalent in a Linked Open Vocabulary or Authority). | ||
<syntaxhighlight lang="SPARQL"> | <syntaxhighlight lang="SPARQL"> | ||
SELECT ?record ?recordLabel ?string ?authority ?authorityLabel | SELECT ?record ?recordLabel ?string ?authority ?authorityLabel ?roleLabel | ||
WHERE { | WHERE { | ||
?record p:P14 ?stringStatement . | ?record p:P14 ?stringStatement . | ||
?stringStatement ps:P14 ?string . | ?stringStatement ps:P14 ?string . | ||
#FILTER NOT EXISTS { ?stringStatement pq:P17 ?authority . } | #FILTER NOT EXISTS { ?stringStatement pq:P17 ?authority . } | ||
OPTIONAL { ?stringStatement pq:P15 ?role . } | OPTIONAL { ?stringStatement pq:P15 ?role . } | ||
SERVICE wikibase:label { | SERVICE wikibase:label { | ||
Line 134: | Line 128: | ||
} | } | ||
ORDER BY ASC (?string) | ORDER BY ASC (?string) | ||
<syntaxhighlight> | <syntaxhighlight> |