Could not initialize term mention filter

65 views
Skip to first unread message

Apurv Tiwari

unread,
May 13, 2015, 6:30:22 PM5/13/15
to lum...@googlegroups.com
A shoutout to all lumify devs. Kudos for this amazing project :-) Tried it online and loved functionality and it's interface.
I have checked out the latest release from git. Followed the instructions in README have got it the setup working on my IntelliJ IDE. 
Although the setup works and I can login to the system I get an error in the IDE. Following stacktrace :
Servlet context initialized...
Exception in thread "graph-property-worker-runner-94" io.lumify.core.exception.LumifyException: Could not initialize term mention filter: io.lumify.zipCodeResolver.ZipCodeResolverTermMentionFilter
at io.lumify.core.ingest.graphProperty.GraphPropertyRunner.loadTermMentionFilters(GraphPropertyRunner.java:115)
at io.lumify.core.ingest.graphProperty.GraphPropertyRunner.prepareWorkers(GraphPropertyRunner.java:54)
at io.lumify.core.ingest.graphProperty.GraphPropertyRunner.prepare(GraphPropertyRunner.java:48)
at io.lumify.web.ApplicationBootstrap$2.run(ApplicationBootstrap.java:268)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.lumify.core.exception.LumifyException: Could not find concept by intent: zipCode
at io.lumify.core.model.ontology.OntologyRepositoryBase.getRequiredConceptByIntent(OntologyRepositoryBase.java:876)
at io.lumify.core.model.ontology.OntologyRepositoryBase.getRequiredConceptIRIByIntent(OntologyRepositoryBase.java:883)
at io.lumify.zipCodeResolver.ZipCodeResolverTermMentionFilter.prepareIris(ZipCodeResolverTermMentionFilter.java:68)
at io.lumify.zipCodeResolver.ZipCodeResolverTermMentionFilter.prepare(ZipCodeResolverTermMentionFilter.java:39)
at io.lumify.core.ingest.graphProperty.GraphPropertyRunner.loadTermMentionFilters(GraphPropertyRunner.java:113)
... 4 more

Is this a known bug ? Any help would be greatly appreciated.

Thanks again 

Gordon Shankman

unread,
May 14, 2015, 7:48:27 AM5/14/15
to lum...@googlegroups.com
That error means the system has not been initialized with an ontology. See https://github.com/lumifyio/lumify/blob/develop/docs/ontology.md for instructions on loading the dev ontology, which should define the zipCode concept.

Apurv Tiwari

unread,
May 14, 2015, 12:12:30 PM5/14/15
to lum...@googlegroups.com
Thanks Gordon :) 
It did resolve zipCode issue but opened up another issue. Let me bring that up in another post to respect the forum. 
You may please mark this post as solved.

vincenzo algieri

unread,
Aug 4, 2016, 5:28:38 AM8/4/16
to Lumify
Hi Apurv,

can you tell me how to resolve this issue? According to what is specified in the documentation (https://github.com/lumifyio/lumify/blob/develop/docs/ontology.md) I uploaded dev ontology via web plugin and I overrided the intent in the configuration file as follow:


#override intent for CONCEPTS
ontology.intent.concept.phoneNumber=http://lumify.io/dev#phoneNumber
ontology.intent.concept.audio=http://lumify.io/dev#audio
ontology.intent.concept.city=http://lumify.io/dev#city
ontology.intent.concept.country=http://lumify.io/dev#country
ontology.intent.concept.csv=http://lumify.io/dev#csv
ontology.intent.concept.document=http://lumify.io/dev#document
ontology.intent.concept.email=http://lumify.io/dev#email
ontology.intent.concept.entityImage=http://lumify.io/dev#entityImage
ontology.intent.concept.image=http://lumify.io/dev#image
ontology.intent.concept.location=http://lumify.io/dev#location
ontology.intent.concept.organization=http://lumify.io/dev#organization
ontology.intent.concept.person=http://lumify.io/dev#person
ontology.intent.concept.rdf=http://lumify.io/dev#rdf
ontology.intent.concept.state=http://lumify.io/dev#state
ontology.intent.concept.video=http://lumify.io/dev#video
ontology.intent.concept.zipCode=http://lumify.io/dev#zipCode



#override intent for RELATIONSHIP
ontology.intent.relationship.hasMedia=http://lumify.io/dev#hasMedia
ontology.intent.relationship.entityHasimage=http://lumify.io/#dev#entityHasimage
ontology.intent.relationship.artifactHasEntity=http://lumify.io/#dev#artifactHasEntity
ontology.intent.relationship.artifactContainsImageOfEntity=http://lumify.io/#dev#artifactContainsImageOfEntity


#override intent for PROPERTIES
ontology.intent.property.pageCount=http://lumify.io/dev#pageCount
ontology.intent.property.media.yAxisFlipped=http://lumify.io/#dev#media.yAxisFlipped
ontology.intent.property.media.width=http://lumify.io/dev#media.width
ontology.intent.property.media.metadata=http://lumify.io/dev#media.metadata
ontology.intent.property.media.imageHeading=http://lumify.io/#dev#media.imageHeading
ontology.intent.property.media.height=http://lumify.io/dev#media.height
ontology.intent.property.media.fileSize=http://lumify.io/dev#media.fileSize
ontology.intent.property.media.duration=http://lumify.io/dev#media.duration
ontology.intent.property.media.deviceModel=http://lumify.io/#dev#media.deviceModel
ontology.intent.property.media.deviceMake=http://lumify.io/#dev#media.deviceMake
ontology.intent.property.media.dateTaken=http://lumify.io/#dev#media.dateTaken
ontology.intent.property.media.clockwiseRotation=http://lumify.io/#dev#media.clockwiseRotation
ontology.intent.property.geoLocation=http://lumify.io/dev#geoLocation


So, my question is: in what configuration file I have to put this??? I put it in the /config/lumify.properties. Is it correct or not?

Because when I try to drag&drop a document in lumify, after that the uploading was finished, it appear "undefined" with the '?' symbol and it is assigned also to class "Thing".
In the jetty log file I have your same error.



Thanks.
Reply all
Reply to author
Forward
0 new messages