Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The RDFIO Extension - A Status update

1,063 views

Published on

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

Published in: Technology, Education
  • Be the first to comment

The RDFIO Extension - A Status update

  1. 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. 2. What is RDFIO? Google summer of code 2010 ● Import RDF ● Query with SPARQL ● Complete rewrite done now ● tinyurl.com/getrdfio
  3. 3. Import Import RDF triples ● Write triples with SPARQL+ ● Import (mirror) an external SPARQL endpoint ● tinyurl.com/getrdfio
  4. 4. RDFIO Architecture tinyurl.com/getrdfio
  5. 5. RDFIO Architecture tinyurl.com/getrdfio
  6. 6. RDFIO Architecture tinyurl.com/getrdfio
  7. 7. tinyurl.com/getrdfio
  8. 8. tinyurl.com/getrdfio
  9. 9. tinyurl.com/getrdfio
  10. 10. “Poormans SPARQL endpoint mirroring”
  11. 11. 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
  12. 12. Talk to SMW from Bioclipse
  13. 13. 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
  14. 14. Next steps for RDFIO ● ● ● Editing via templates Import triples per “page” (Idea: Varun Ratnakar) Your idea here ...
  15. 15. Thanks! tinyurl.com/getrdfio Samuel Lampa Dept. of Pharm. Biosciences, Uppsala University t: @smllmp b: saml.rilspace.org g: samuel.lampa@gmail.com

×