Created
June 17, 2014 09:01
-
-
Save boutros/832520c7f3623993d30a to your computer and use it in GitHub Desktop.
generate displayLabel
This file contains 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 { | |
?person <armillaria://internal/displayLabel> ?label | |
} | |
WHERE { | |
?person a foaf:Person ; | |
foaf:name ?name . | |
OPTIONAL { ?person <http://data.deichman.no/lifespan> ?lifespan } | |
BIND( IF(bound(?lifespan), concat(?name, " (", ?lifespan, ")"), ?name) AS ?label) | |
} LIMIT 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment