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, <zahoorahmed.k...@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.westentha...@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.westentha...@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.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen | REDLINK.CO .......................................................................... | http://redlink.co/