Trying to query for the most referenced SKOS concept in an RDF/XML file.
So if a concept looks like this in the file:
<rdf:Description rdf:about="http://foo.bar.biz/Processes/151">
<rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
<skos:prefLabel xml:lang="en">Part</skos:prefLabel>
<skos:related rdf:resource="http://foo.bar.biz/Processes/150"/>
</rdf:Description>
How can I construct a SPARQL query that targets the skos:related
tag ? I'm looking into RDFLib in Python right now, which has SPARQL compatibility. Seems like a query would be more appropriate than parsing the entire file - just not familiar enough with SPARQL syntax I suppose.