Created
August 8, 2020 22:24
-
-
Save baskaufs/a2a2ba83fb17fa28dc7ea7afc7a4603e to your computer and use it in GitHub Desktop.
Construct statements using direct properties from indirect p: and ps: properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
construct {?item ?directProp ?value.} | |
from <http://nursing1> | |
where { | |
?item ?p ?statement. | |
?statement ?ps ?value. | |
filter(substr(str(?ps),1,39)="http://www.wikidata.org/prop/statement/") | |
bind(substr(str(?ps),40) as ?id) | |
bind(substr(str(?p),30) as ?id) | |
bind(iri(concat("http://www.wikidata.org/prop/direct/", ?id)) as ?directProp) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment