Skip to content

Instantly share code, notes, and snippets.

@samuell
Created December 16, 2010 23:29
Show Gist options
  • Save samuell/744215 to your computer and use it in GitHub Desktop.
Save samuell/744215 to your computer and use it in GitHub Desktop.
// Bioclipse Script (BSL) to import contents of an RDF/XML file into a Semantic MediaWiki
// Create an empty RDF Store
rdfStore = rdf.createInMemoryStore();
// Yeah, obviously, fill the RDF Store with some triples from an RDF/XML file
rdf.importFile(rdfStore, "2nd-degreeproject/nmrshiftdata.1.rdf.xml", "RDF/XML")
// Write the RDF to a Semantic MediaWiki (with the RDFIO extension installed)
result = smw.putRDF(rdfStore, "http://drugmet.rilspace.org/wiki")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment