Hi Mircea,
labels are not that representative for knowledge bases encoded in
PROTON. There is the notion of Alias representing multiple alternative
names of an entity.
So i suggest the following query:
select UK,L,R,E from {UK}
<http://proton.semanticweb.org/2005/04/protons#hasAlias> {A}, {A}
<http://www.w3.org/2000/01/rdf-schema#label> {L}, {UK} R {E}
where L like "UK"
this will give you the entities (and their aliases) which have UK in
their name.
It is obvious that there is a problem in the accuracy of the current IE
module, that's why you get organization and person with such labels.
This has been erroneously recognized and we will have a look at this and
fix it.
If you want to see the relations for all entities with a name UK:
select UK,L,R,E from {UK}
<http://proton.semanticweb.org/2005/04/protons#hasAlias> {A}, {A}
<http://www.w3.org/2000/01/rdf-schema#label> {L}, {UK} R {E}
where L like "UK"
you will have to focus on the bottom part of the result because there is
the meaningful part.
b
Mircea Trifan wrote:
>
> Hi,
>
> I managed to connect to the KIM Proton KB using the sesame web ui and
> to issue a couple of SeRQL statements. However, I'd like to display
> all entities that have any relation to the object whose label is "UK".
> If I issue:
>
> SELECT E, R FROM {UK} <http://www.w3.org/2000/01/rdf-schema#label> {"UK"},
> {E} R {UK}
>
> Query results:
> E R
> http://www.ontotext.com/kim/2005/04/wkb#Person.UK_R.50196
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23Person%2eUK%5fR%2e50196%3e>
>
> http://proton.semanticweb.org/2005/04/protons#hasMainAlias
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fproton%2esemanticweb%2eorg%2f2005%2f04%2fprotons%23hasMainAlias%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#Person.UK_R.50196
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23Person%2eUK%5fR%2e50196%3e>
>
> http://proton.semanticweb.org/2005/04/protons#hasAlias
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fproton%2esemanticweb%2eorg%2f2005%2f04%2fprotons%23hasAlias%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#Country_T.UK
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23Country%5fT%2eUK%3e>
>
> http://proton.semanticweb.org/2005/04/protons#hasAlias
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fproton%2esemanticweb%2eorg%2f2005%2f04%2fprotons%23hasAlias%3e>
>
>
>
>
> result quite different than the desired:
>
> Query results:
> E
> http://www.ontotext.com/kim/2005/04/wkb#Mountain_T.3
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23Mountain%5fT%2e3%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#Mountain_T.2
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23Mountain%5fT%2e2%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#MountainRange_T.59
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23MountainRange%5fT%2e59%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#River_T.34
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23River%5fT%2e34%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#River_T.33
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23River%5fT%2e33%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#CountryCapital_T.146
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23CountryCapital%5fT%2e146%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#City_T.615
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23City%5fT%2e615%3e>
>
>
> http://www.ontotext.com/kim/2005/04/wkb#City_T.2542
> <http://localhost:8080/sesame-web-ui/explorer/show.jsp?repository=kim&value=%3chttp%3a%2f%2fwww%2eontotext%2ecom%2fkim%2f2005%2f04%2fwkb%23City%5fT%2e2542%3e>
>
>
>
> ...
>
> obtained without the label "indirection":
>
> SELECT E FROM {E} R
> {<http://www.ontotext.com/kim/2005/04/wkb#Country_T.UK>}
>
> Any help with the desired query will be greatly appreciated.
>
> Thanks.
>
> Cheers,
> Mircea
> ------------------------------------------------------------------------
>
> _______________________________________________
> NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of
> this mailing list.
>
> KIM-discussion mailing list
> [email protected]
> http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006
>
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this
mailing list.
KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com