Skip to content

Instantly share code, notes, and snippets.

@ewg118 ewg118/price.sparql
Last active Nov 2, 2017

What would you like to do?
SPARQL query to get coins with Price numbers from the British Museum endpoint.
PREFIX bmo: <>
PREFIX ecrm: <>
PREFIX rdf: <>
PREFIX skos: <>
PREFIX bibo: <>
PREFIX rdfs: <>
SELECT ?s ?regno ?ref WHERE {
?s crm:P70i_is_documented_in <> ;
crm:P1_is_identified_by ?d1 .
?d1 crm:P2_has_type <> ;
rdfs:label ?ref FILTER regex(str(?ref), "GC30")
?s crm:P1_is_identified_by ?d2 .
?d2 crm:P2_has_type <>;
rdfs:label ?regno .
?s bmo:PX_display_wrap ?text . FILTER regex(?text, "Price\\s1991\\sP?[0-9]")
} ORDER BY ?ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.