Re: No module named pymedtermino2 and destroy RDF triples

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/No-module-named-pymedtermino2-and-destroy-RDF-triples-tp1028p1034.html

Hi,

I forgot to install the pymedtermino2 module in setup.py. I fixed setup.py in the development version, so you should now be able to import pymedtermino2.

Here is an example of DELETE SPARQL command:

    world = self.new_world()
    o = world.get_ontology("http://www.semanticweb.org/onto.owl")
    g = world.as_rdflib_graph()
    g.bind("onto", "http://www.semanticweb.org/onto.owl#")

    r = g.update("""
    DELETE {
    onto:ma_pizza
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
    onto:Pizza .
    } WHERE {}""")

Jiba