Hello ,

I am trying to test my custom vocabulary made out of a single entity(person), 
described below (the content of the RDF file I sent to the entityhub via curl).

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rdf:RDF [

          <!ENTITY dbpedia-owl 'http://dbpedia.org/ontology/'>

          <!ENTITY ontos-english 
'http://www.ontosearch.com/2008/02/ontosminer-ns/domain/common/english#'>

          <!ENTITY foaf 'http://xmlns.com/foaf/0.1/'>

          <!ENTITY ontos-id 'http://www.ontosearch.com/2008/01/identification/'>

          <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

          <!ENTITY ontos-german 
'http://www.ontosearch.com/2008/02/ontosminer-ns/domain/common/german#'>

]>

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
xmlns:ontos-english="&ontos-english;" xmlns:foaf="&foaf;" 
xmlns:ontos-id="&ontos-id;" xmlns:ontos-german="&ontos-german;" 
xmlns:dbpedia-owl="&dbpedia-owl;" 
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";>

          <foaf:Person 
rdf:about="&ontos-id;EID-548d30d3a0056cd672300b1f9c916f2d">

                    <ontos-english:Initial>A.</ontos-english:Initial>

                    <foaf:gender>m</foaf:gender>

                    <foaf:givenname>Albert</foaf:givenname>

                    <foaf:surname>Einstein</foaf:surname>

                    <foaf:name>Albert Einstein</foaf:name>

                    <rdfs:comment>PRIMARY</rdfs:comment>

          </foaf:Person>

</rdf:RDF>

 

I expected the enhancer to detect the person “Einstein” when I use my custom 
chain

Enhancement Chain: myVocabulary all 5 engines available

* tika ( required , TikaEngine)

* langdetect ( required , LanguageDetectionEnhancementEngine)

* ner ( required , NamedEntityExtractionEnhancementEngine)

* r2HRLinking ( required , NamedEntityTaggingEngine) -- 

* entityhubExtraction ( required , KeywordLinkingEngine)

 

"r2HRLinking" was created following [1] and its configuration is shown in this 
PDF file [2]

 

What I get from the enhancer, as "RDF raw output", is

 

{

  "@context": {

    "confidence": "http://fise.iks-project.eu/ontology/confidence";,

    "created": "http://purl.org/dc/terms/created";,

    "creator": "http://purl.org/dc/terms/creator";,

    "Enhancement": "http://fise.iks-project.eu/ontology/Enhancement";,

    "extracted-from": "http://fise.iks-project.eu/ontology/extracted-from";,

    "language": "http://purl.org/dc/terms/language";,

    "LinguisticSystem": "http://purl.org/dc/terms/LinguisticSystem";,

    "TextAnnotation": "http://fise.iks-project.eu/ontology/TextAnnotation";,

    "type": "http://purl.org/dc/terms/type";,

    "xsd": "http://www.w3.org/2001/XMLSchema#";,

    "@coerce": {

      "@iri": [

        "extracted-from",

        "type"

      ],

      "xsd:dateTime": "created",

      "xsd:double": "confidence",

      "xsd:string": "creator"

    }

  },

  "@subject": "urn:enhancement-a1626e60-bf99-b4d9-7005-645f943d1f3c",

  "@type": [

    "Enhancement",

    "TextAnnotation"

  ],

  "confidence": 0.9999958,

  "created": "2015-06-04T12:28:08.967Z",

  "creator": 
"org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine",

  "extracted-from": 
"urn:content-item-sha1-d49ce1a91ead09f39925fcc5f58bc0ef1010fb17",

  "language": "en",

  "type": "LinguisticSystem"

}

 

I do not know what is wrong: my RDF description of the person, my "r2HRLinking" 
configuration or both.

 

Could someone enlighten me on the matter please?

Thank you,

Adrian

 

[1] http://stanbol.apache.org/docs/trunk/customvocabulary.html 

[2] https://app.box.com/s/4ssqz099frp3uhbf5ofoowtg0jy26763 (click on 
Telecharger)

 

Reply via email to