You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by ZA...@cognizant.com on 2015/02/02 11:35:18 UTC
apache stanbol not recognising custom entities
I have downloaded an ontology from <http://www.w3.org/TR/owl-guide/wine.rdf><%3chttp:/www.w3.org/TR/owl-guide/wine.rdf%3e> based on this ontology i have created an index
wine.solrindex.zip and reference site org.apache.stanbol.data.site.wine-1.0.0
based on these, i have created a wegihted chain , keywordlinking , now when an input text is given it is recognising only the "wine" no other words are being recognised. in the mapping.txt file the custom mappings are added as;
wine:PotableLiquid| d=entityhub:ref
wine:Region| d=entityhub:ref
wine:Vintage| d=entityhub:ref
wine:VintageYear| d=entityhub:ref
wine:WineDescrption| d=entityhub:ref
wine:Winery| d=entityhub:ref
any idea what must be wrong?
Zahoor
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
RE: apache stanbol not recognising custom entities
Posted by ZA...@cognizant.com.
Thanks Rupert for quick reply :). Will try and explore stanbol with smoother ontologies.
-----Original Message-----
From: Rupert Westenthaler [mailto:rupert.westenthaler@gmail.com]
Sent: Monday, February 02, 2015 4:34 PM
To: dev@stanbol.apache.org
Subject: Re: apache stanbol not recognising custom entities
Hi Zahoor,
>
> wine:PotableLiquid| d=entityhub:ref
>
> wine:Region| d=entityhub:ref
>
> wine:Vintage| d=entityhub:ref
>
> wine:VintageYear| d=entityhub:ref
>
> wine:WineDescrption| d=entityhub:ref
>
> wine:Winery| d=entityhub:ref
>
in the mapping.txt you need to map properties not types.
> I have downloaded an ontology from
> <http://www.w3.org/TR/owl-guide/wine.rdf>
> <%3chttp:/www.w3.org/TR/owl-guide/wine.rdf%3e> based on this ontology
> i have created an index
The wine.rdf only contains the following labels
<rdfs:label>Wine Ontology</rdfs:label>
<rdfs:label xml:lang="en">wine</rdfs:label> <rdfs:label xml:lang="fr">vin</rdfs:label>
Their are no other labels in the whole Ontology. Looks like they do use the local-name of the URIs for "naming" and those can not be used by Stanbol.
To summarize:
* The Wine ontology can not be used for Entity Linking as it seams not to define any labels (local names of URIs do not count)
* If you can only extract "wine" it is the expected result given the labels present in the Ontology. You should also be able to extract "Wine Ontology" if mentioned in the text. Meaning that linking seams to work as expected.
best
Rupert
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
Re: apache stanbol not recognising custom entities
Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Zahoor,
This Ontology is also strange, as it defines all Literals as typed
literals with the data type xsd:string.
Here is an example
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">maintenance
of protein localization in organelle</rdfs:label>
Typically you would expect something like
<rdfs:label xml:lang="en">maintenance of protein localization in
organelle</rdfs:label>
By default xsd:string literals are not considered for entity linking
as such things are usually used for IDs like (ISBN numbers, Product
IDs, MD5 hashes ...). If you want to use them for linking you need to
explicitly tell the indexing tool to do so. This can be done by adding
the mapping
rdfs:label | d=entityhub:text
to the mapping.txt file (replace an existing rdfs:label mapping if
present). The `d=entityhub:text` tells the indexing tool to convert
any value of the rdfs:label property to a natural language text.
In addition you will want to index only the owl:Class instances (and
not owl:Axiom, owl:AnnotationProperty ...) so you SHOULD also add a
field value filter that only accepts owl:Class instance.
best
Rupert
On Tue, Feb 3, 2015 at 9:48 AM, <ZA...@cognizant.com> wrote:
> Hi rupert, now I tried with the another ontology (go.owl) from http://geneontology.org/page/download-ontology , created index and site jar file and configured the stanbol instance, howver now it not recognizing anything I have followed the steps given at stanbol documentation (https://stanbol.apache.org/docs/trunk/customvocabulary.html ) Can u tell me where I am wrong? Also It will be great if u could send me a documentation/tutorial from where I can see and elarn how to upload an onotology and check the enhancer with a sample input text.
>
> Thanks
> zahoor
> -----Original Message-----
> From: Rupert Westenthaler [mailto:rupert.westenthaler@gmail.com]
> Sent: Monday, February 02, 2015 4:34 PM
> To: dev@stanbol.apache.org
> Subject: Re: apache stanbol not recognising custom entities
>
> Hi Zahoor,
>
>>
>> wine:PotableLiquid| d=entityhub:ref
>>
>> wine:Region| d=entityhub:ref
>>
>> wine:Vintage| d=entityhub:ref
>>
>> wine:VintageYear| d=entityhub:ref
>>
>> wine:WineDescrption| d=entityhub:ref
>>
>> wine:Winery| d=entityhub:ref
>>
>
> in the mapping.txt you need to map properties not types.
>
>> I have downloaded an ontology from
>> <http://www.w3.org/TR/owl-guide/wine.rdf>
>> <%3chttp:/www.w3.org/TR/owl-guide/wine.rdf%3e> based on this ontology
>> i have created an index
>
> The wine.rdf only contains the following labels
>
> <rdfs:label>Wine Ontology</rdfs:label>
> <rdfs:label xml:lang="en">wine</rdfs:label> <rdfs:label xml:lang="fr">vin</rdfs:label>
>
> Their are no other labels in the whole Ontology. Looks like they do use the local-name of the URIs for "naming" and those can not be used by Stanbol.
>
> To summarize:
>
> * The Wine ontology can not be used for Entity Linking as it seams not to define any labels (local names of URIs do not count)
> * If you can only extract "wine" it is the expected result given the labels present in the Ontology. You should also be able to extract "Wine Ontology" if mentioned in the text. Meaning that linking seams to work as expected.
>
> best
> Rupert
>
> --
> | Rupert Westenthaler rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11 ++43-699-11108907
> | A-5500 Bischofshofen
> | REDLINK.CO ..........................................................................
> | http://redlink.co/
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/
RE: apache stanbol not recognising custom entities
Posted by ZA...@cognizant.com.
Hi rupert, now I tried with the another ontology (go.owl) from http://geneontology.org/page/download-ontology , created index and site jar file and configured the stanbol instance, howver now it not recognizing anything I have followed the steps given at stanbol documentation (https://stanbol.apache.org/docs/trunk/customvocabulary.html ) Can u tell me where I am wrong? Also It will be great if u could send me a documentation/tutorial from where I can see and elarn how to upload an onotology and check the enhancer with a sample input text.
Thanks
zahoor
-----Original Message-----
From: Rupert Westenthaler [mailto:rupert.westenthaler@gmail.com]
Sent: Monday, February 02, 2015 4:34 PM
To: dev@stanbol.apache.org
Subject: Re: apache stanbol not recognising custom entities
Hi Zahoor,
>
> wine:PotableLiquid| d=entityhub:ref
>
> wine:Region| d=entityhub:ref
>
> wine:Vintage| d=entityhub:ref
>
> wine:VintageYear| d=entityhub:ref
>
> wine:WineDescrption| d=entityhub:ref
>
> wine:Winery| d=entityhub:ref
>
in the mapping.txt you need to map properties not types.
> I have downloaded an ontology from
> <http://www.w3.org/TR/owl-guide/wine.rdf>
> <%3chttp:/www.w3.org/TR/owl-guide/wine.rdf%3e> based on this ontology
> i have created an index
The wine.rdf only contains the following labels
<rdfs:label>Wine Ontology</rdfs:label>
<rdfs:label xml:lang="en">wine</rdfs:label> <rdfs:label xml:lang="fr">vin</rdfs:label>
Their are no other labels in the whole Ontology. Looks like they do use the local-name of the URIs for "naming" and those can not be used by Stanbol.
To summarize:
* The Wine ontology can not be used for Entity Linking as it seams not to define any labels (local names of URIs do not count)
* If you can only extract "wine" it is the expected result given the labels present in the Ontology. You should also be able to extract "Wine Ontology" if mentioned in the text. Meaning that linking seams to work as expected.
best
Rupert
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
Re: apache stanbol not recognising custom entities
Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Zahoor,
>
> wine:PotableLiquid| d=entityhub:ref
>
> wine:Region| d=entityhub:ref
>
> wine:Vintage| d=entityhub:ref
>
> wine:VintageYear| d=entityhub:ref
>
> wine:WineDescrption| d=entityhub:ref
>
> wine:Winery| d=entityhub:ref
>
in the mapping.txt you need to map properties not types.
> I have downloaded an ontology from <http://www.w3.org/TR/owl-guide/wine.rdf>
> <%3chttp:/www.w3.org/TR/owl-guide/wine.rdf%3e> based on this ontology i
> have created an index
The wine.rdf only contains the following labels
<rdfs:label>Wine Ontology</rdfs:label>
<rdfs:label xml:lang="en">wine</rdfs:label>
<rdfs:label xml:lang="fr">vin</rdfs:label>
Their are no other labels in the whole Ontology. Looks like they do
use the local-name of the URIs for "naming" and those can not be used
by Stanbol.
To summarize:
* The Wine ontology can not be used for Entity Linking as it seams not
to define any labels (local names of URIs do not count)
* If you can only extract "wine" it is the expected result given the
labels present in the Ontology. You should also be able to extract
"Wine Ontology" if mentioned in the text. Meaning that linking seams
to work as expected.
best
Rupert
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/