Aaah, sure I can use SPARQL 1.1 to massage triple stores, including triple 
stores that use IRIs from the DBpedia ontology.   In this way, I could modify 
the results, perhaps to make them look like certain stuff had been removed from 
the DBpedia ontology, although this process can result in systematic errors if 
the triples include inferred triples.

My question was, however, what SPARQL 1.1 has to do with changing the DBpedia 
ontology itself.

peter

On Apr 14, 2014, at 5:42 AM, Kingsley Idehen <kide...@openlinksw.com> wrote:

> On 4/14/14 7:02 AM, Kingsley Idehen wrote:
>>> How can I use SPARQL 1.1 to change the DBpedia ontology?
>> 
>> You can use SPARQL 1.1 (from your SPARQL 1.1 compliant application) to 
>> generate triples is a named graph local to your application, based solutions 
>> returned to you from the public SPARQL endpoint. 
> Important typo fix. I meant to say:
> 
> You can use SPARQL 1.1 (from your SPARQL 1.1 compliant application) to 
> generate triples *in* a named graph local to your application, based *on* 
> solutions returned to *your app* from the public SPARQL endpoint.
> 
> I do this all the time when editing definitions (for classes and properties) 
> oriented triples in ontologies.
> 
> Typical example, where I am adding missing rdfs:isDefinedBy, voca:defines, 
> and wdrs:isdescribedby relations to an existing shared ontology.
> 
> Note: I am using Virtuoso as my SPARQL 1.1 compliant application (so I have 
> the ability to grab data from any SPARQL endpoint and then use SPARQL 1.1 for 
> local named graph scoped INSERT and DELETE operations):
> 
> ##     The Identity of Resources on the Web ontology (IRW).
> # Ontology URI: <http://www.ontologydesignpatterns.org/ont/web/irw.owl#>
> # Ontology Document URL: 
> <http://www.ontologydesignpatterns.org/ont/web/irw.owl>
> 
> ## I use SPARQL 1.1 LOAD to get the data into Virtuoso
> 
> LOAD <http://www.ontologydesignpatterns.org/ont/web/irw.owl> ;
> 
> WITH GRAPH <http://www.ontologydesignpatterns.org/ont/web/irw.owl>
> INSERT {
>         ?s <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> 
> <http://www.ontologydesignpatterns.org/ont/web/irw.owl#> .
> <http://www.ontologydesignpatterns.org/ont/web/irw.owl#> 
> <http://open.vocab.org/terms/defines> ?s.
> <http://www.ontologydesignpatterns.org/ont/web/irw.owl#> a owl:Ontology .
>        ?s <http://www.w3.org/2007/05/powder-s#describedby> 
> <http://www.ontologydesignpatterns.org/ont/web/irw.owl> .
> <http://www.ontologydesignpatterns.org/ont/web/irw.owl> foaf:primaryTopic ?s .
>        }
> WHERE {
>        {?s <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?o}
>        UNION
>        {?s <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> ?o}
>        UNION
>        {?s <http://www.w3.org/2002/07/owl#equivalentClass> ?o}
>        UNION
>        {?s <http://www.w3.org/2002/07/owl#equivalentProperty> ?o}
>        UNION
>        {?s a ?o}
>        UNION {
>        ?s <http://www.w3.org/2000/01/rdf-schema#domain> ?o}
>        UNION
>        {?s <http://www.w3.org/2000/01/rdf-schema#range> ?o}
>     }
> 
> 
> ## COSMO Ontology
> 
> ## Ontology URI: <http://micra.com/COSMO/COSMO.owl#>
> ## Ontology Document URL: <http://micra.com/COSMO/COSMO.owl>
> 
> ## Using SPARQL 1.1 LOAD to get data into Virtuoso
> 
> LOAD <http://micra.com/COSMO/COSMO.owl>  ;
> 
> WITH GRAPH <http://micra.com/COSMO/COSMO.owl>
> INSERT {
>         ?s <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> 
> <http://micra.com/COSMO/COSMO.owl#> .
>        <http://micra.com/COSMO/COSMO.owl#> 
> <http://open.vocab.org/terms/defines> ?s.
>        <http://micra.com/COSMO/COSMO.owl#> a owl:Ontology .
>        ?s <http://www.w3.org/2007/05/powder-s#describedby> 
> <http://micra.com/COSMO/COSMO.owl> .
>        <http://micra.com/COSMO/COSMO.owl> foaf:primaryTopic ?s .
>        }
> WHERE {
>        {?s <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?o}
>        UNION
>        {?s <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> ?o}
>        UNION
>        {?s <http://www.w3.org/2002/07/owl#equivalentClass> ?o}
>        UNION
>        {?s <http://www.w3.org/2002/07/owl#equivalentProperty> ?o}
>        UNION
>        {?s a ?o}
>        UNION {
>        ?s <http://www.w3.org/2000/01/rdf-schema#domain> ?o}
>        UNION
>        {?s <http://www.w3.org/2000/01/rdf-schema#range> ?o}
>     }
> 
> -- 
> 
> Regards,
> 
> Kingsley Idehen       
> Founder & CEO
> OpenLink Software
> Company Web: http://www.openlinksw.com
> Personal Weblog: http://www.openlinksw.com/blog/~kidehen
> Twitter Profile: https://twitter.com/kidehen
> Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
> LinkedIn Profile: http://www.linkedin.com/in/kidehen
> 
> 
> 
> 
> 


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to