Reputation: 85
I have this RDF file:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:j.0="http://relation/" >
<rdf:Description rdf:about="http://Group/row100">
<j.0:Codice>VC</j.0:Codice>
<j.0:Nome>Vercelli</j.0:Nome>
<j.0:Regione>Piemonte</j.0:Regione>
</rdf:Description>
<rdf:Description rdf:about="http://Group/row63">
<j.0:Codice>MT</j.0:Codice>
<j.0:Nome>Matera</j.0:Nome>
<j.0:Regione>Basilicata</j.0:Regione>
</rdf:Description>
<rdf:Description rdf:about="http://Group/row30">
<j.0:Codice>CA</j.0:Codice>
<j.0:Nome>Cagliari</j.0:Nome>
<j.0:Regione>Sardegna</j.0:Regione>
</rdf:Description>
<rdf:Description rdf:about="http://Group/row57">
<j.0:Codice>LU</j.0:Codice>
<j.0:Nome>Lucca</j.0:Nome>
<j.0:Regione>Toscana</j.0:Regione>
</rdf:Description>
<rdf:Description rdf:about="http://Group/row71">
<j.0:Codice>PD</j.0:Codice>
<j.0:Nome>Padova</j.0:Nome>
<j.0:Regione>Veneto</j.0:Regione>
</rdf:Description>
<rdf:Description rdf:about="http://Group/row14">
<j.0:Codice>TN</j.0:Codice>
<j.0:Nome>Trento</j.0:Nome>
<j.0:Regione>TrentinoAltoAdige</j.0:Regione>
</rdf:Description>
</rdf:RDF>
How I can do interlinking my file with other external Dataset as DBPEDIA?
I would like to use automated tools in Java code. I studied "Silk" but, it wants an ontology in input, while I don't want to provide an ontology in input.
Thanks in advance.
Upvotes: 1
Views: 133
Reputation: 2470
You do this by appending the literal, e.g. "Trentino", to the dbpedia URL "http://dbpedia.org/resource/" => http://dbpedia.org/resource/Trentino .
As some literals won't yield any result, e.g. "http://dbpedia.org/resource/TrentinoAltoAdige", you want to pre-process your data. In your case, alter the literal to "http://dbpedia.org/resource/Trentino_Alto_Adige" (see the pattern: insert a '_' before uppercase characters besides it's the first character).
Interlink your data with property e.g. rdf:seeAlso
or, if you want link to wikipedia, e.g. <http://purl.org/ontology/mo/wikipedia>
.
Upvotes: 2