Skip to content

Instantly share code, notes, and snippets.

@sandervd
Created October 16, 2024 09:11
Show Gist options
  • Select an option

  • Save sandervd/385cd9bf98fd2984faf88ad1413ecb20 to your computer and use it in GitHub Desktop.

Select an option

Save sandervd/385cd9bf98fd2984faf88ad1413ecb20 to your computer and use it in GitHub Desktop.
# Author: Jan Robert
PREFIX ex: <http://example.org/>
CONSTRUCT {
?newIRI ?p ?o .
?s ?p ?o .
}
WHERE {
{
SELECT ?newIRI ?p ?o
WHERE {
?s ?p ?o .
FILTER(isBlank(?s))
BIND(IRI(CONCAT("https://ipdc.tni-vlaanderen.be/resource/", STRUUID())) AS ?newIRI)
}
}
UNION
{
?s ?p ?o .
FILTER(!isBlank(?s))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment