Named entities from RDF


(qimby) #1

Hi there.

I want to send RDF file to custom extractor, extract the necessary values from it and send to model to search for the named entities. But problem is that text of file in extractor comes only text without XML tags.
How to get full text of the RDF file in my custom extractor?
Thank. sorry for my language.


(qimby) #2

Maybe need to use some parameter in the command to send the file?
I use this command
stardog doc put --rdf-extractors MyExtractor myDB_NLP File.xml


(qimby) #3

Custom extractor extends the class AbstractEntityRDFExtractor.
May need to extends another class?


(zachary.whitley) #4

Try extending TextProvidingRDFExtractor


(qimby) #5

Did not help. Result is the same.


(zachary.whitley) #6

Sorry I missed that you wanted the raw document contents and not the extracted text. I'm not sure if or how that could be done but it's a good question. Someone else will have to jump in here.


(zachary.whitley) #7

I think you just need to write a custom extractor implementing RDFExtractor and you can access the document from the Path argument to the extract method.


(system) #8

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.