I have checked the ontology of GeoSPARQL and I have found this:
<gn:Code rdf:about="#A.ADMD"
skos:notation="A.ADMD">
<skos:definition xml:lang="en">an administrative division of a country, undifferentiated as to administrative level</skos:definition>
<skos:inScheme rdf:resource="#A"/>
<skos:prefLabel xml:lang="en">administrative division</skos:prefLabel>
</gn:Code>
I would like to write a query for Mexico, that would fetch me this information, something like this:
PREFIX gn: <http://www.geonames.org/ontology#>
PREFIX co: <http://www.geonames.org/countries/#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?admd
WHERE {
?admd rdf:about gn:MX .
}
but I am getting nothing. Can anybody help?
I test in GeoSPARQL endpoint and in stSPARQL endpoint.
EDIT.0:
This:
select * {
"#A.ADMD" ?predicate ?object
}
won't return anything.
EDIT.1:
Only this ?administration gn:A.ADMD gn:MX
gives me a result in the stSPARQL endpoint, but it's all "Dimos Chania", which I am pretty sure it's wrong. I am almost sure I have to run the query at the GeoSPARQL endpoint, but I am getting nothing back as a result!
EDIT.2:
What I am want to ask, is give me the administrative levels of Mexico, so I thought that if we were able to have a query that would fetch A.ADMD, then I would be able to do so for ADM1..ADM5.
So, I executed this query in the GeoSPARQL endpoint:
PREFIX gn:<http://www.geonames.org/ontology#>
Select *
WHERE{
?administration gn:A.ADMD gn:MX
}
and I got nothing back.