Thanks!

But the reason for changing the ontology was to execute this query and get more 
results, especially for p2 since domain and range are bound.

"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> " +
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>  " +
"SELECT ?s2 ?s2l ?p2 ?o2 ?o2l ?rangep2 ?domainp2 " +
"WHERE {" +
"       ?s2 rdf:type <http://dbpedia.org/ontology/Organisation> ." +
"       ?s2 rdfs:label ?s2l . " +
"       ?o2 ?p2 ?s2 . " +
"       ?o2 rdfs:label ?o2l " +
"       FILTER (lang(?s2l) = \"en\") " +
"       FILTER (lang(?o2l) = \"en\") " +
"       ?p2  rdfs:range  ?rangep2 . " +
"       ?p2  rdfs:domain ?domainp2 . " +
"}";

I've tried this endpoint (http://dbpedia-live.openlinksw.com/sparql) and it 
returned my changes to the ontology. Unfortunately, it seemed that the query 
execution time was too long and has been rejected with a HttpException: 500 
SPARQL Request Failed exception. (This query has been executed correctly on the 
AKSW playground server. )

Any ideas on how to make that query?

Cheers,
Daniel

On 29.05.2011, at 08:47, Sebastian Hellmann wrote:

> Actually, this should be the query for it:
> 
> PREFIX meta: <http://dbpedia.org/meta/>
> CONSTRUCT {?s ?p ?o}  
> FROM <http://dbpedia.org/meta>
> WHERE
> {
> ?b meta:origin meta:TBoxExtractor .
> ?b owl:annotatedSource ?s .
> ?b owl:annotatedProperty ?p .
> ?b owl:annotatedTarget ?o .
> FILTER(!(?p IN (
>    meta:editlink, 
>    meta:revisionlink,
>    meta:oaiidentifier,
>    <http://http://purl.org/dc/terms/modified>
> ))).
> }
> 
> 
> And this for one class: 
> 
> PREFIX meta: <http://dbpedia.org/meta/>
> CONSTRUCT {?s ?p ?o}  
> FROM <http://dbpedia.org/meta>
> WHERE
> {
> ?b meta:sourcepage <http://dbpedia.org/ontology/Person> .
> ?b owl:annotatedSource ?s .
> ?b owl:annotatedProperty ?p .
> ?b owl:annotatedTarget ?o .
> FILTER(!(?p IN (
>    meta:editlink, 
>    meta:revisionlink,
>    meta:oaiidentifier,
>    meta:sourcepage, 
>    <http://http://purl.org/dc/terms/modified>
> ))).
> }
> 
> Normally this endpoint would work: http://dbpedia-live.openlinksw.com/
> But things are changing a lot lately. I think there must be a way to get it 
> directly from the Wiki also...
> Sebastian
> 
> On 28.05.2011 16:55, Gerber Daniel wrote:
>> 
>> Hi all,
>> Could anybody please tell me when a change in the dbpedia ontology at 
>> mappings.dbpedia.org is merged into dbpedia, respectively accessible via the 
>> sparql endpoints?
>> Both live.dbpedia.org/sparql and dbpedia.org/sparql do not show my changes 
>> made over a week ago?
>> 
>> Cheers,
>> Daniel
>> 
>> ------------------------------------------------------------------------------
>> vRanger cuts backup time in half-while increasing security.
>> With the market-leading solution for virtual backup and recovery, 
>> you get blazing-fast, flexible, and affordable data protection.
>> Download your free trial now. 
>> http://p.sf.net/sfu/quest-d2dcopy1
>> 
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> Dbpedia-discussion@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
> 
> 
> -- 
> Dipl. Inf. Sebastian Hellmann
> Department of Computer Science, University of Leipzig
> Homepage: http://bis.informatik.uni-leipzig.de/SebastianHellmann
> Research Group: http://aksw.org

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to