Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-175

Error when getting a mapping from the entityhub

    XMLWordPrintableJSON

Details

    Description

      1) Lookup an entity using the entityhub/symbol/lookup endpoint:

      curl "http://localhost:8080/entityhub/symbol/lookup/?id=http://dbpedia.org/resource/Paris&create=true"

      In the JSON result you get the ID, e.g.: "id": "urn:org.apache.stanbol:entityhub:symbol.1265dfa5-f39a-a033-4d0a-0dc0bfb53fb7"

      2) Get the mapping for this ID using entityhub/mapping endpoint:

      curl "http://localhost:8080/entityhub/mapping?id=urn:org.apache.stanbol:entityhub:symbol.1265dfa5-f39a-a033-4d0a-0dc0bfb53fb7"

      3) You get the following error message:

      Representation urn:org.apache.stanbol:entityhub:symbol.1265dfa5-f39a-a033-4d0a-0dc0bfb53fb7 does not define required field http://www.iks-project.eu/ontology/rick/model/mappedEntity - <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
      <title>Error 500 Representation urn:org.apache.stanbol:entityhub:symbol.1265dfa5-f39a-a033-4d0a-0dc0bfb53fb7 does not define required field http://www.iks-project.eu/ontology/rick/model/mappedEntity</title>
      </head>
      <body><h2>HTTP ERROR 500</h2>
      <p>Problem accessing /entityhub/mapping. Reason:
      <pre> Representation urn:org.apache.stanbol:entityhub:symbol.1265dfa5-f39a-a033-4d0a-0dc0bfb53fb7 does not define required field http://www.iks-project.eu/ontology/rick/model/mappedEntity</pre></p><h3>Caused by:</h3><pre>java.lang.IllegalArgumentException: Representation urn:org.apache.stanbol:entityhub:symbol.1265dfa5-f39a-a033-4d0a-0dc0bfb53fb7 does not define required field http://www.iks-project.eu/ontology/rick/model/mappedEntity
      at org.apache.stanbol.entityhub.core.model.DefaultEntityMappingImpl.<init>(DefaultEntityMappingImpl.java:97)
      at org.apache.stanbol.entityhub.core.impl.EntityhubImpl.getEntityMappingFromYard(EntityhubImpl.java:467)
      at org.apache.stanbol.entityhub.core.impl.EntityhubImpl.getMappingById(EntityhubImpl.java:475)
      at org.apache.stanbol.entityhub.jersey.resource.EntityMappingResource.getMapping(EntityMappingResource.java:98)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Attachments

        Activity

          People

            rwesten Rupert Westenthaler
            fchrist Fabian Christ
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: