Presentation at the EMBL-EBI Industry RDF meeting

19
AGROVOC, AGRIS and the CIARD RING, using RDF vocabularies and technologies for data interoperability

Transcript of Presentation at the EMBL-EBI Industry RDF meeting

Page 1: Presentation at the EMBL-EBI  Industry RDF meeting

AGROVOC, AGRIS and the CIARD RING,

using RDF vocabularies and technologies for data

interoperability

Page 2: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

http://aims.fao.org

Page 3: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

AGROVOC http://aims.fao.org/agrovoc

Page 4: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Plant products @en

http://eurovoc.europa.eu/5360

skosxl:prefLabel

skos:broader

skosxl:altLabel

2015-02-03T22:59:45Z

cereals @en

c_8171

c_1474

label

skos:exactMatch

skos:related

skos:definition dcterms:created

“A definition”

rdf:value

“An URL for its source

vb:hasLink

skosxl:literlForm

skosxl:prefLabel skosxl:literlForm

agrontology:isUsedAs

c_3032

food products @enc_3032

food products @en

xl_en_c345

…..

xl_en_c3955

xl_jp_c3485

xl_en_c134

植物生産物 @jp

Page 5: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Relationships, Relationshipshttp://aims.fao.org/aos/agrovoc/c_1474.html

Page 6: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Page 7: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Exploitation (agris.fao.org)

Page 8: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

http://agris.fao.org

http://agris.fao.org/agris-search/search.do?recordID=PH2011000084

http://agris.fao.org/agris-search/search.do?recordID=PL2003002036

Page 9: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

From AGRIS to DBPedia

AGRIS URI

AGROVOC URI

dcterms:subject

DBPedia URI

skos:closeMatchskos:exactMatch

DBPedia Abstract

Wikipedia URL

DBPedia Picture

foaf:isPrimaryTopicOfdbpedia-owl:abstract

foaf:depiction

Entry point!

AGROVOC is the

backbone

Page 10: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

SPARQL in action!1. From an AGRIS URI, get the list of the AGROVOC URIs (dcterms:subject)

PREFIX dct: <http://purl.org/dc/terms/>SELECT ?agrWHERE {<AGRIS_Uri> dct:subject ?agr .

}

2. For each AGROVOC URI2.1. Get skos:closeMatch and skos:exactMatch (formal alignments to other thesauri)

PREFIX skos: <http://www.w3.org/2004/02/skos/core#> SELECT?em ?cm {OPTIONAL { <AGROVOC_Uri> skos:exactMatch ?em } . OPTIONAL { <AGROVOC_Uri> skos:closeMatch ?cm } .

}

Page 11: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Get DBPedia

2.2. The JAVA code filters DBPedia URIs, to avoid adding a new FILTER in the SPARQL query (it’s heavy…)

2.3. For each DBPedia URI, query the DBPedia SPARQL endpoint to get information to display in an AGRIS widget

SELECT ?abs ?img ?wiki WHERE {

OPTIONAL {<DBP_Uri> dbpedia-owl:abstract ?abs} . OPTIONAL {<DBP_Uri> foaf:depiction ?img} . OPTIONAL {<DBP_Uri> foaf:isPrimaryTopicOf ?wiki} . FILTER ( (lang(?abs ) =\"en\") || (!bound(?abs)) ) }

Page 12: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

The CIARD RING (ring.ciard.info)Interoperability and Linked Data

Page 13: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

The RING machine interface – SPARQL

An RDF store is a way of storing data using a machine-readable "grammar" (the Resource Description Framework) and documented semantics (RDF vocabularies).URIsThe URI for each service / dataset is built as follows: [RING-domain]/node/[service-ID].For example: http://ring.ciard.net/node/2417

The RING database is an publicly accessible RDF store of datasets.

SPARQL endpointhttp://ring.ciard.net/sparql1

Page 14: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

SPARQL how to: vocabularies used in the RING

The vocabularies used in the RDF store are:

RDF: http://www.w3.org/1999/02/22-rdf-syntax-ns#RDFS: http://www.w3.org/2000/01/rdf-schema# DC: http://purl.org/dc/terms/DCAT: http://www.w3.org/ns/dcat# ADMS: http://www.w3.org/ns/adms# FOAF: http://xmlns.com/foaf/0.1/ DOAP: http://usefulinc.com/ns/doap# SKOS: http://www.w3.org/2004/02/skos/core# VCARD: http://www.w3.org/2006/vcard/ns#

The data model chosen to describe datasets is the

W3C Data Catalog Vocabulary (DCAT)designed to describe datasets

and the forms in which they are exposed, their "distributions"

Page 15: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

SPARQL how to: URIs?

All the URIs that you may need in queries are listed on the RING web site

A list of the URIs of all the RING entities (services/datasets, organizations, KOSs etc.): http://ring.ciard.net/entity-uris

A list of the URIs of all RING concepts (countries, topics, regions, protocols etc.): http://ring.ciard.net/concept-uris

Page 16: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Sample query using AGROVOCTo get all datasets on topic "Livestock" using the AGROVOC URI for "Livestock"

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dc: <http://purl.org/dc/terms/> PREFIX dcat: <http://www.w3.org/ns/dcat#> PREFIX adms: <http://www.w3.org/ns/adms#> PREFIX doap: <http://usefulinc.com/ns/doap#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> DESCRIBE ?dataset ?distro ?owner ?contact ?topic ?standard ?format ?protocol WHERE { ?dataset rdf:type dcat:Dataset . ?dataset dc:title ?title . ?dataset dcat:distribution ?distro . ?dataset dc:publisher ?owner . ?distro dcat:accessURL ?url . ?dataset dcat:theme ?topic . ?topic owl:sameAs <http://aims.fao.org/aos/agrovoc/c_4397> . OPTIONAL { ?dataset doap:maintainer ?contact } OPTIONAL { ?distro dc:conformsTo ?standard } OPTIONAL { ?distro dc:format ?format } OPTIONAL { ?distro adms:representationTechnique ?protocol } }

URI of the “Livestock” concept in AGROVOC

Page 17: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Example of use: AGRIS RING

1. How AGRIS uses the RING Linked Data

AGRIS  (http://agris.fao.org): database of more than 7 million bibliographic references on agricultural research and technology and links to related data resources on the Web.AGRIS retrieves information on AGRIS centers through a SPARQL query run against the RING.<http://ring.ciard.net/node/10687> is the uRI of the AGRIS network in the RING------------------------------

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dc: <http://purl.org/dc/terms/> PREFIX dcat: <http://www.w3.org/ns/dcat#> DESCRIBE ?dataset WHERE { ?dataset rdf:type dcat:Dataset . ?dataset dc:partOf <http://ring.ciard.net/node/10687> } ------------------------------

Page 18: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Example of use: AGRIS RING

2. How to get AGRIS Linked Data bibliographic records for each AGRIS center

In the AGRIS RDF store, all bibliographic records are associated to the corresponding AGRIS center through the dcterms:source property: the URI used to identify the AGRIS center is the RING URI.Any application can therefore retrieve all records belonging to an AGRIS center by running a query against the AGRIS SPARQL endpoint (http://202.45.139.84:10035/catalogs/fao/repositories/agris).------------------------------------PREFIX dcterms: <http://purl.org/terms> DESCRIBE ?rec WHERE { ?rec dcterms:source <http://ring.ciard.net/node/2754> . } -----------------------------------

Page 19: Presentation at the EMBL-EBI  Industry RDF meeting

johannes keizerhttp://aims.fao.org

Acknowledgements

Caterina Caracciolo (AGROVOC)

Valeria Pesce (RING)

Fabrizio Celli (Agris)