the rdfio extension - a status update

Post on 01-Sep-2014

589 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Status update of the RDFIO extension to Semantic MediaWiki at SMWCon Fall 2013 in Berlin

TRANSCRIPT

The RDFIO extensionA status update

SMWCon Fall 2013

Samuel LampaDept. of Pharm. Biosciences, Uppsala University

t: @smllmpb: saml.rilspace.org

g: samuel.lampa@gmail.com

tinyurl.com/getrdfio

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

“Poormans SPARQL endpoint mirroring”

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

library(rrdf)

endpoint = "http://127.0.0.1/mediawiki/index.php/Special:SPARQLEndpoint"

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

Credits: @EgonWillighagen

Next steps for RDFIO

● Editing via templates● Import triples per “page” (Idea: Varun

Ratnakar)● Your idea here ...

Thanks!

Samuel LampaDept. of Pharm. Biosciences, Uppsala University

t: @smllmpb: saml.rilspace.org

g: samuel.lampa@gmail.com

tinyurl.com/getrdfio

top related