Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- PREFIX wn: <http://www.w3.org/2006/03/wn/wn20/schema/>
- SELECT DISTINCT ?label WHERE
- {
- SERVICE <http://wordnet.rkbexplorer.com/sparql/>
- {
- ?s1 wn:memberMeronymOf <http://wordnet.rkbexplorer.com/id/synset-solar_system-noun-1> .
- ?s1 rdfs:label ?label.
- }
- MINUS
- {
- SERVICE <http://wordnet.rkbexplorer.com/sparql/>
- {
- ?s2 wn:hyponymOf <http://wordnet.rkbexplorer.com/id/synset-Roman_deity-noun-1> .
- ?s2 rdfs:label ?label.
- }
- }
- BIND(URI(CONCAT("http://dbpedia.org/resource/", ?label)) AS ?dbpResource)
- FILTER(EXISTS
- {
- SERVICE <http://dbpedia.org/sparql>
- {
- ?dbpResource a <http://dbpedia.org/ontology/Planet> .
- }
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement