I’m creating a custom extractor following this example.
However, I got the following error when adding a document via StardocsConnection.
Unknown extractor name: com.some.package.name.CustomExtractor
I have the file META-INF/service/com.complexible.stardog.docs.extraction.RDFExtractor pointing the custom extractor and the following dependency in the pom.xml file
Please let me know what I’m missing.
com.some.package.name.CustomExtractor available on the classpath of the running Stardog server?
Ah, that is it. The example uses an embedded server. Mine does not.
I put the JAR that contains the custom extractor into the <STARDOG_HOME>/server/pack directory; restart Stardog server and it works now.
FYI: Stardog will, on startup, look for a STARDOG_EXT environment variable, and will bring in any jars it finds there. This proves useful so that in the future if/when you upgrade you don’t have to remember to put external jars inside the new install directory.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.