# Worked SPARQL Update examples for this entity's graph. # # Neither is applied by this tool — the export is a description, not a # migration. They are here because both transformations encode a decision this # engine already made elsewhere (see BHE-DES-RDF-001 Phase 6). # # PROCESSOR WARNING: rdflib 7.6 silently drops the second operation of this # request. Measured, not assumed: operation 2 alone rewrites the graph, and so # does the pair in the opposite order, but `1 ; 2` leaves the graph untouched # — no error, no warning. Run the two separately if your processor is rdflib. # The ordering below is the one that works there. # # Generated by the Schema Engine (BHE-DES-RDF-001 Phase 9). PREFIX schema: PREFIX rdf: PREFIX skos: PREFIX owl: # 1. Promote a Wikidata sameAs to owl:sameAs. # schema:sameAs is a soft "see also"; owl:sameAs licenses a reasoner to # merge every statement about both nodes. The export deliberately makes the # weaker claim, because it is true of every sameAs value including profile # URLs. It is only safe to strengthen for identifiers that name the thing # itself, which is what the FILTER restricts this to. DELETE { ?node schema:sameAs ?wikidata } INSERT { ?node owl:sameAs ?wikidata } WHERE { ?node schema:sameAs ?wikidata . FILTER (STRSTARTS(STR(?wikidata), "https://www.wikidata.org/")) } ; # 2. Bridge the schema.org terms into SKOS. # The concept scheme already does this at export time; run this instead if # you loaded only the page graphs and want the thesaurus view. INSERT { ?term a skos:Concept } WHERE { ?term a schema:DefinedTerm }