Hi Michael, I would suggest you try to define the execution plan by using the chain list [1]. The best would be to do it via the UI provided by the Felix Webconsole. By doing so you do not need to deal with RDF syntax directly.
Anyways the GraphChain is an advanced feature that allows fine grained control over chain execution. In most of the cases configuring a WeightedChain[2] is sufficient. best Rupert [1] https://stanbol.apache.org/docs/trunk/components/enhancer/chains/graphchain#chainlist [2] https://stanbol.apache.org/docs/trunk/components/enhancer/chains/weightedchain.html On Mon, Oct 10, 2016 at 3:45 PM, A. Soroka <aj...@virginia.edu> wrote: > Ah, I see. That is not at all parseable Turtle RDF. It really is just a list > of URIs. You named the file ".ttl", but it is not proper Turtle: > > https://en.wikipedia.org/wiki/Turtle_(syntax)#Example > > There is a great deal of punctuation missing. I'm not at all sure why the > example in the docs is printed that way. It won't work. > > Perhaps someone who knows more about how the documentation is generated can > comment? Perhaps that example was meant to acquire some formatting before > publication? > > --- > A. Soroka > The University of Virginia Library > >> On Oct 10, 2016, at 8:32 AM, Michal Krajňanský <michal.krajnan...@gmail.com> >> wrote: >> >> Dear Mr. Soroka, >> >> Sorry for the mistake, trying again -- please find the attached file. >> >> As you can find, I took over the example from Stanbol web: >> https://stanbol.apache.org/docs/trunk/components/enhancer/chains/executionplan.html >> and copied the prefix declarations from here: >> https://stanbol.apache.org/docs/trunk/components/enhancer/chains/graphchain.html >> >> Thank you for looking into this! >> >> Michal Krajnansky >> >> >> On Mon, Oct 10, 2016 at 2:23 PM A. Soroka <aj...@virginia.edu> wrote: >> That RDF quote didn't come through the mailing list (at least not for me). >> It became a list of URIs. Perhaps you can try pasting it as very plain text? >> Or you could put it in Gist or some other pastebin service? >> >> >> >> --- >> >> A. Soroka >> >> The University of Virginia Library >> >> >> >> > On Oct 10, 2016, at 5:22 AM, Michal Krajňanský >> > <michal.krajnan...@gmail.com> wrote: >> >> > >> >> > Dear Stanbol Users, >> >> > >> >> > I have been experimenting with the system and I would appreciate your help >> >> > with the following problem. >> >> > >> >> > I am trying to implement a custom Graph chain like the example here: >> >> > https://stanbol.apache.org/docs/trunk/components/enhancer/chains/executionplan.html >> >> > and here: >> >> > https://stanbol.apache.org/docs/trunk/components/enhancer/chains/graphchain.html >> >> > >> >> > However, when trying to invoke the chain, I get the following exception: >> >> > >> >> > *org.apache.jena.riot [line: 6, col: 1 ] Undefined prefix: urn* >> >> > >> >> > >> >> > My execution plan RDF looks like this: >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > *@prefix xsd: <http://www.w3.org/2001/XMLSchema# >> >> > <http://www.w3.org/2001/XMLSchema#>> .@prefix rdf: >> >> > <http://www.w3.org/1999/02/22-rdf-syntax-ns# >> >> > <http://www.w3.org/1999/02/22-rdf-syntax-ns#>> .@prefix ep: >> >> > <http://stanbol.apache.org/ontology/enhancer/executionplan# >> >> > <http://stanbol.apache.org/ontology/enhancer/executionplan#>> .@prefix ehp: >> >> > <http://stanbol.apache.org/ontology/enhancementproperties# >> >> > <http://stanbol.apache.org/ontology/enhancementproperties#>> >> >> > .urn:execPlan rdf:type ep:ExecutionPlan ep:hasExecutionNode >> >> > urn:node1, urn:node2, urn:node3, urn:node4, urn:node5 ep:chain >> >> > "demoChain"urn:node1 rdf:type stanbol:ExecutionNode >> >> > ep:inExecutionPlan urn:execPlan ep:engine langIdurn:node2 rdf:type >> >> > ep:ExecutionNode ep:inExecutionPlan urn:execPlan ep:dependsOn >> >> > urn:node1 ep:engine nerurn:node3 rdf:type ep:ExecutionNode >> >> > ep:inExecutionPlan urn:execPlan ep:dependsOn urn:node1 ep:engine >> >> > dbpediaLinkingurn:node4 rdf:type ep:ExecutionNode ep:inExecutionPlan >> >> > urn:execPlan ep:dependsOn urn:node1 ep:engine >> >> > geonamesLinkingurn:node5 rdf:type ep:ExecutionNode ep:inExecutionPlan >> >> > urn:execPlan ep:engine zemanta ep:optional "true"^^xsd:boolean* >> >> > >> >> > Thank you in advance for your kind help. >> >> > >> >> > Best Regards, >> >> > >> >> > >> >> > Michal Krajnansky >> >> >> >> <example-chain.ttl> > -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen | REDLINK.CO .......................................................................... | http://redlink.co/