Created
March 12, 2014 19:18
-
-
Save jirihelmich/9514248 to your computer and use it in GitHub Desktop.
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
private def buildDistinctValuesQuery(property: String): String = { | |
String.format( | |
""" | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
| | |
| SELECT DISTINCT ?o ?l WHERE { | |
| [] <%s> ?o . | |
| | |
| OPTIONAL { ?o rdfs:label ?l . FILTER (LANG(?l) = 'en') } | |
| | |
| } ORDER BY(?o) | |
| """.stripMargin, property) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment