How to use

17 views
Skip to first unread message

Eric Bunton

unread,
Jul 7, 2009, 10:31:34 AM7/7/09
to UMBEL
Could someone send me some documentation on how to submit a SPARQL
query of the UMBEL data and could they tell me where I can find the
ontology?

Frederick Giasson

unread,
Jul 7, 2009, 10:35:16 AM7/7/09
to umbel-o...@googlegroups.com
Hi Eric,

> Could someone send me some documentation on how to submit a SPARQL
> query of the UMBEL data and could they tell me where I can find the
> ontology?
>

You can query a endpoint here: http://umbel.zitgist.com/sparql.php


Check out other web services endpoints here: http://umbel.zitgist.com/


You can use them to browse and search the ontology.

Otherwise you have access to the files of the ontology here:
http://www.umbel.org/documentation.html

The complete technical documentation is available here:
http://umbel.org/technical_documentation.html

Hope this is what you were looking for :)


Thanks,


Take care,


Fred

Eric Bunton

unread,
Jul 7, 2009, 10:48:06 AM7/7/09
to UMBEL
does anyone have a sample SPARQL query accessing data the UMBEL is
linked to?

Frederick Giasson

unread,
Jul 7, 2009, 10:56:32 AM7/7/09
to umbel-o...@googlegroups.com
Hi again,

> does anyone have a sample SPARQL query accessing data the UMBEL is
> linked to?
>

You can use the same sparql interface but for the "Graph URI" choose
"UMBEL Named Entities". You will be searching wikipedia as an example.


Otherwise you will have to check for other endpoints (exposed to the
public) that describe things using UMBEL.


Thanks,


Fred

Eric Bunton

unread,
Jul 7, 2009, 11:10:02 AM7/7/09
to UMBEL
In order to use the linked data I would have to get the namespaces
they use and add them to my sparql query in addition to the umbel
namespaces, right?

Frederick Giasson

unread,
Jul 7, 2009, 5:05:44 PM7/7/09
to umbel-o...@googlegroups.com
Hi Eric,

> In order to use the linked data I would have to get the namespaces
> they use and add them to my sparql query in addition to the umbel
> namespaces, right?
>

Well, I think that I would need some more information about what you are
trying to archive here.

In mean time, you can check all the blog psots I wrote about UMBEL and
some of its use cases. You can refer to some concept in there if some
seems to meet some of your requirements:
http://fgiasson.com/blog/index.php/category/umbel/

I will help you out as soon as I have more information about what you
are trying to accomplish with UMBLE (intuitively or not).


Thanks!

Take care,


Fred

Message has been deleted

Eric Bunton

unread,
Jul 16, 2009, 1:50:23 PM7/16/09
to UMBEL
Here is a query I wrote for the dbpedia website. How would I adapt it
for use with UMBEL?
prefix db: <http://dbpedia.org/ontology/>
prefix db2: <http://dbpedia.org/ontology/>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xschema: <http://www.w3.org/2001/XMLSchema#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix prop:<http://dbpedia.org/property/>
select distinct ?name ?population where{
?country a db:Country ;
rdfs:label ?name ;
prop:populationCensus ?population .
FILTER ((datatype(?population) = xsd:integer ) && langMatches(lang(?
name), "EN")) .
}

When this query is run it returns this table:
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=prefix+db%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E+%0D%0Aprefix+db2%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E+%0D%0Aprefix+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E+%0D%0Aprefix+xschema%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E+%0D%0Aprefix+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E+%0D%0Aprefix+prop%3A%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2F%3E+%0D%0A%0D%0Aselect+distinct+%3Fname+%3Fpopulation+where%7B+%0D%0A+++%3Fcountry+a+db%3ACountry+%3B+%0D%0A+++++++rdfs%3Alabel+%3Fname+%3B+%0D%0A+++++++prop%3ApopulationCensus+%3Fpopulation+.+%0D%0A+++FILTER+%28%28datatype%28%3Fpopulation%29+%3D+xsd%3Ainteger+%29+%26%26+langMatches%28lang%28%3Fname%29%2C+%22EN%22%29%29+.+%0D%0A%7D+&format=text%2Fhtml&debug=on&timeout=

Eric
Message has been deleted

Frederick Giasson

unread,
Jul 17, 2009, 12:16:11 PM7/17/09
to umbel-o...@googlegroups.com
Hi Eric!

> Here is a query I wrote for the dbpedia website. How would I adapt it
> for use with UMBEL?
> prefix db: <http://dbpedia.org/ontology/>
> prefix db2: <http://dbpedia.org/ontology/>
> prefix owl: <http://www.w3.org/2002/07/owl#>
> prefix xschema: <http://www.w3.org/2001/XMLSchema#>
> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> prefix prop:<http://dbpedia.org/property/>
> select distinct ?name ?population where{
> ?country a db:Country ;
> rdfs:label ?name ;
> prop:populationCensus ?population .
> FILTER ((datatype(?population) = xsd:integer ) && langMatches(lang(?
> name), "EN")) .
> }
>
> When this query is run it returns this table:
> http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=prefix+db%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E+%0D%0Aprefix+db2%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E+%0D%0Aprefix+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E+%0D%0Aprefix+xschema%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E+%0D%0Aprefix+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E+%0D%0Aprefix+prop%3A%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2F%3E+%0D%0A%0D%0Aselect+distinct+%3Fname+%3Fpopulation+where%7B+%0D%0A+++%3Fcountry+a+db%3ACountry+%3B+%0D%0A+++++++rdfs%3Alabel+%3Fname+%3B+%0D%0A+++++++prop%3ApopulationCensus+%3Fpopulation+.+%0D%0A+++FILTER+%28%28datatype%28%3Fpopulation%29+%3D+xsd%3Ainteger+%29+%26%26+langMatches%28lang%28%3Fname%29%2C+%22EN%22%29%29+.+%0D%0A%7D+&format=text%2Fhtml&debug=on&timeout=
>

Right now Dbpedia seems down, but to answer your question:

UMBEL is integrated in dbpedia as a TBox. So this mean that you won't
directly see links to umbel concepts, etc. But you can enable a feature
(inference) in your sparql query to enable the use of UMBEL as a TBox
for dbpedia instance records.

Here is some query example that demonstrate that usage here:

http://lists.w3.org/Archives/Public/public-lod/2008Sep/0071.html

We would need some testing to make sure it is still working properly
with the latest version of DBPedia (3.3 I think); but I can't right now
since it appears to be down as I write.

so, it is that line that enable the use of UMBEL's subject structure to
enable inference at query time:

"define input:inference
'http://dbpedia.org/resource/inference/rules/umbel#'"


By specifying this line, you tell the SPARQL query processor to use that
TBox to infer facts to build-up the resultset returned by the endpoint.


Hope this helps!


Thanks,


Take care,


Fred

Eric Bunton

unread,
Jul 21, 2009, 8:45:25 AM7/21/09
to UMBEL
Every time I run one of the example queries on the website you posted
I get this error:
42000 Error RDF..: Inference context http://dbpedia.org/resource/inference/rules/umbel#
does not existSPARQL query:define input:default-graph-uri define
input:inference 'http://dbpedia.org/resource/inference/rules/
umbel#'prefix umbel: prefix yago: select ?swhere{?s a
yago:FemaleBoxers; a umbel:Graduate; a umbel:Boxer.}

Do you know what that means and how to fix it?

On Jul 17, 12:16 pm, Frederick Giasson <f...@fgiasson.com> wrote:
> Hi Eric!
>
>
>
>
>
> > Here is a query I wrote for the dbpedia website. How would I adapt it
> > for use with UMBEL?
> > prefix db: <http://dbpedia.org/ontology/>
> > prefix db2: <http://dbpedia.org/ontology/>
> > prefix owl: <http://www.w3.org/2002/07/owl#>
> > prefix xschema: <http://www.w3.org/2001/XMLSchema#>
> > prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> > prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> > prefix prop:<http://dbpedia.org/property/>
> > select distinct ?name ?population where{
> >    ?country a db:Country ;
> >        rdfs:label ?name ;
> >        prop:populationCensus ?population .
> >    FILTER ((datatype(?population) = xsd:integer ) && langMatches(lang(?
> > name), "EN")) .
> > }
>
> > When this query is run it returns this table:
> >http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&...
Reply all
Reply to author
Forward
0 new messages