The RDFIO Extension - A Status update

Samuel Lampa
Samuel LampaPhD Student in Pharmaceutical Bioinformatics
The RDFIO extension
A status update

tinyurl.com/getrdfio
SMWCon Fall 2013
Samuel Lampa
Dept. of Pharm. Biosciences, Uppsala University

t: @smllmp
b: saml.rilspace.org
g: samuel.lampa@gmail.com
What is RDFIO?

Google summer of code 2010
● Import RDF
● Query with SPARQL
● Complete rewrite done now
●

tinyurl.com/getrdfio
Import

Import RDF triples
● Write triples with SPARQL+
● Import (mirror) an external
SPARQL endpoint
●

tinyurl.com/getrdfio
RDFIO Architecture

tinyurl.com/getrdfio
RDFIO Architecture

tinyurl.com/getrdfio
RDFIO Architecture

tinyurl.com/getrdfio
tinyurl.com/getrdfio
tinyurl.com/getrdfio
tinyurl.com/getrdfio
The RDFIO Extension - A Status update
The RDFIO Extension - A Status update
The RDFIO Extension - A Status update
The RDFIO Extension - A Status update
The RDFIO Extension - A Status update
The RDFIO Extension - A Status update
“Poormans SPARQL endpoint mirroring”
The RDFIO Extension - A Status update
The RDFIO Extension - A Status update
Talk to SMW from Bioclipse
var wikiURL = "http://drugmet.rilspace.org/wiki/";
/* Editing SMW facts */
smw.addTriple("w:Caffeine", "w:is_a", "w:Molecule", wikiURL);
smw.removeTriple("w:Caffeine", "w:is_a", "w:Molecule", wikiURL);
/* Downloading RDF for local querying */
rdfStore = rdf.createInMemoryStore();
rdfStore = smw.getRDF( wikiURL );
result = rdf.sparql( rdfStore,
"SELECT DISTINCT ?pred WHERE { ?subj ?pred ?obj } LIMIT 10"
)
/* Show some output */
js.print( result );

→ bioclipse.net
Talk to SMW from Bioclipse
Pulling data from R
Credits: @EgonWillighagen
library(rrdf)
endpoint =
"http://127.0.0.1/mediawiki/index.php/Special:SPARQLEndpoin
t"
query = paste("PREFIX w: ",
"SELECT ?min ?max ?zeta WHERE ",
"{ ?inst a w:Category-3AMetalOxides . ",
" OPTIONAL { ?inst w:Property-3AHas_Size_Min ?min . }",
" OPTIONAL { ?inst w:Property-3AHas_Size_Max ?max . }",
" OPTIONAL { ?inst w:Property-3AHas_Zeta_potential ?
zeta . }",
"}"
);

http://chem-bla-ics.blogspot.com/2011/06/importing-nanotoxicity-data-with-sparql.html
Next steps for RDFIO
●

●

●

Editing via templates
Import triples per “page” (Idea: Varun
Ratnakar)
Your idea here ...
Thanks!

tinyurl.com/getrdfio
Samuel Lampa

Dept. of Pharm. Biosciences, Uppsala University
t: @smllmp
b: saml.rilspace.org
g: samuel.lampa@gmail.com
1 of 23

More Related Content

Similar to The RDFIO Extension - A Status update(20)

Linking the world with Python and SemanticsLinking the world with Python and Semantics
Linking the world with Python and Semantics
Tatiana Al-Chueyr14.4K views
SPARQL-DL - Theory & PracticeSPARQL-DL - Theory & Practice
SPARQL-DL - Theory & Practice
Adriel Café4K views
Drupal and the Semantic WebDrupal and the Semantic Web
Drupal and the Semantic Web
Kristof Van Tomme586 views
AGROVOC, AGRIS and the CIARD RING,  using RDF vocabularies and technologies f...AGROVOC, AGRIS and the CIARD RING,  using RDF vocabularies and technologies f...
AGROVOC, AGRIS and the CIARD RING, using RDF vocabularies and technologies f...
AIMS (Agricultural Information Management Standards)788 views
SPARQL 1.1 Update (2013-03-05)SPARQL 1.1 Update (2013-03-05)
SPARQL 1.1 Update (2013-03-05)
andyseaborne4.5K views
Querying the Semantic Web with SPARQLQuerying the Semantic Web with SPARQL
Querying the Semantic Web with SPARQL
Emanuele Della Valle3.2K views
Querying Linked Data with SPARQLQuerying Linked Data with SPARQL
Querying Linked Data with SPARQL
Olaf Hartig15.4K views
Bio2RDF@BH2010Bio2RDF@BH2010
Bio2RDF@BH2010
François Belleau1.9K views
BioSD Tutorial 2014 EdititionBioSD Tutorial 2014 Editition
BioSD Tutorial 2014 Editition
Rothamsted Research, UK827 views
Consuming linked data by machinesConsuming linked data by machines
Consuming linked data by machines
Patrick Sinclair1.7K views

The RDFIO Extension - A Status update

  • 1. The RDFIO extension A status update tinyurl.com/getrdfio SMWCon Fall 2013 Samuel Lampa Dept. of Pharm. Biosciences, Uppsala University t: @smllmp b: saml.rilspace.org g: samuel.lampa@gmail.com
  • 2. What is RDFIO? Google summer of code 2010 ● Import RDF ● Query with SPARQL ● Complete rewrite done now ● tinyurl.com/getrdfio
  • 3. Import Import RDF triples ● Write triples with SPARQL+ ● Import (mirror) an external SPARQL endpoint ● tinyurl.com/getrdfio
  • 19. Talk to SMW from Bioclipse var wikiURL = "http://drugmet.rilspace.org/wiki/"; /* Editing SMW facts */ smw.addTriple("w:Caffeine", "w:is_a", "w:Molecule", wikiURL); smw.removeTriple("w:Caffeine", "w:is_a", "w:Molecule", wikiURL); /* Downloading RDF for local querying */ rdfStore = rdf.createInMemoryStore(); rdfStore = smw.getRDF( wikiURL ); result = rdf.sparql( rdfStore, "SELECT DISTINCT ?pred WHERE { ?subj ?pred ?obj } LIMIT 10" ) /* Show some output */ js.print( result ); → bioclipse.net
  • 20. Talk to SMW from Bioclipse
  • 21. Pulling data from R Credits: @EgonWillighagen library(rrdf) endpoint = "http://127.0.0.1/mediawiki/index.php/Special:SPARQLEndpoin t" query = paste("PREFIX w: ", "SELECT ?min ?max ?zeta WHERE ", "{ ?inst a w:Category-3AMetalOxides . ", " OPTIONAL { ?inst w:Property-3AHas_Size_Min ?min . }", " OPTIONAL { ?inst w:Property-3AHas_Size_Max ?max . }", " OPTIONAL { ?inst w:Property-3AHas_Zeta_potential ? zeta . }", "}" ); http://chem-bla-ics.blogspot.com/2011/06/importing-nanotoxicity-data-with-sparql.html
  • 22. Next steps for RDFIO ● ● ● Editing via templates Import triples per “page” (Idea: Varun Ratnakar) Your idea here ...
  • 23. Thanks! tinyurl.com/getrdfio Samuel Lampa Dept. of Pharm. Biosciences, Uppsala University t: @smllmp b: saml.rilspace.org g: samuel.lampa@gmail.com