SELECT ?nis WHERE
{GRAPH <virtual://CRAB>
{<http://id.vlaanderen.be/id/gemeente/2> xkos:classifiedUnder ?nis. }
}
SELECT ?nis ?label
WHERE
{SERVICE <http://id.fedstats.be/sparql>
{?nis skos:prefLabel ?label.
}
VALUES ?nis {<http://id.fedstats.be/nis/11002#id>}
}
SELECT ?nis ?label
WHERE
{SERVICE <http://id.fedstats.be/sparql>
{?nis skos:prefLabel ?label.
{SELECT ?nis WHERE
{GRAPH <virtual://CRAB>
{<http://id.vlaanderen.be/id/gemeente/2> xkos:classifiedUnder ?nis. }
}
}
}
}
SELECT ?nis ?label
WHERE
{?nis skos:prefLabel ?label.
{SELECT ?nis WHERE
{GRAPH <virtual://CRAB>
{<http://id.vlaanderen.be/id/gemeente/2> xkos:classifiedUnder ?nis. }
}
}
}
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
SELECT ?label
WHERE
FILTER (?nisconcept = ?nis)
{SELECT ?nisconcept ?label
WHERE
{SERVICE <http://id.fedstats.be/sparql>
{?nisconcept a skos:Concept;
skos:inScheme <http://id.fedstats.be/conceptscheme/nis#id>;
^skos:member <http://id.fedstats.be/classificationlevel/municipality#id>;
skos:prefLabel ?label;
skos:notation ?nis.
FILTER (lang(?label) = 'nl')
}
}
}
}}
FWIW, This is a working solution: the other way round.
SELECT ?label
WHERE
That should do it. Looks like there's a typo. You have a circumflex at ^skos:member (I'm assuming you weren't intending a property path)
I believe Stardog is doing the right thing as the results are JSON-LD containing graphs and I don't believe that you can load data with explicit graphs but I'm not completely clear on what the sparql update specification expects here. You can certainly run curl against the first url and then manually load it.returning the following error messagebut the following sparql query doesn't workThe following direct url worksOne interesting thing I discovered. I was going to suggest that if the data isn't changing very often you could just load the remote data locally with a LOAD query.
id.fedstats.be/sparql?query=construct%20%7B%3Fnisconcept%20a%20skos%3AConcept%3B%0A%20%20%20%20%20%20%20%20skos%3AinScheme%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fconceptscheme%2Fnis%23id%3E%3B%0A%20%20%20%20%20%20%20%20skos%3Amember%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fclassificationlevel%2Fmunicipality%23id%3E%3B%0A%20%20%20%20%20%20%20%20skos%3AprefLabel%20%3Flabel%3B%0A%20%20%20%20%20%20%20%20skos%3Anotation%20%3Fnis.%7D%0AWHERE%0A%20%20%20%20%0A%20%20%20%20%7B%3Fnisconcept%20a%20skos%3AConcept%3B%0A%20%20%20%20%20%20%20%20skos%3AinScheme%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fconceptscheme%2Fnis%23id%3E%3B%0A%20%20%20%20%20%20%20%20%5Eskos%3Amember%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fclassificationlevel%2Fmunicipality%23id%3E%3B%0A%20%20%20%20%20%20%20%20skos%3AprefLabel%20%3Flabel%3B%0A%20%20%20%20%20%20%20%20skos%3Anotation%20%3Fnis.%0A%20%20%20%20%20%20%20%20FILTER%20(lang(%3Flabel)%20%3D%20%27nl%27)%0A%20%7D%0A%20
stardog query test "load <http://id.fedstats.be/sparql?query=construct%20%7B%3Fnisconcept%20a%20skos%3AConcept%3B%0A%20%20%20%20%20%20%20%20skos%3AinScheme%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fconceptscheme%2Fnis%23id%3E%3B%0A%20%20%20%20%20%20%20%20skos%3Amember%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fclassificationlevel%2Fmunicipality%23id%3E%3B%0A%20%20%20%20%20%20%20%20skos%3AprefLabel%20%3Flabel%3B%0A%20%20%20%20%20%20%20%20skos%3Anotation%20%3Fnis.%7D%0AWHERE%0A%20%20%20%20%0A%20%20%20%20%7B%3Fnisconcept%20a%20skos%3AConcept%3B%0A%20%20%20%20%20%20%20%20skos%3AinScheme%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fconceptscheme%2Fnis%23id%3E%3B%0A%20%20%20%20%20%20%20%20%5Eskos%3Amember%20%3Chttp%3A%2F%2Fid.fedstats.be%2Fclassificationlevel%2Fmunicipality%23id%3E%3B%0A%20%20%20%20%20%20%20%20skos%3AprefLabel%20%3Flabel%3B%0A%20%20%20%20%20%20%20%20skos%3Anotation%20%3Fnis.%0A%20%20%20%20%20%20%20%20FILTER%20(lang(%3Flabel)%20%3D%20%27nl%27)%0A%20%7D%0A%20>"
Expected an RDF value here, found '{' [line 1]