On 22/01/12 20:37, Benson Margulies wrote:
The code below cribbed from the web site has a certain 'static'
feeling to it. Do I have to worry about threads, or is dealt with
internally?
>
         Path path = PathParser.parse("rdf:type/rdfs:subPropertyOf+",
PrefixMapping.Standard);

Calls the parser. It creates the parser internally - the static just wraps up the outer code to drive the process and it uses function local variables. Path objects are just datastructures to be walked in execution.

         String uri = "urn:com.basistech:subprop";
         PathLib.install(uri, path); // this line

This is all setup code. It should be done once as a matter of style (the internal registry is MRSW - this is W)

The registry adds something that creates one-time-use instances for execution. The code does all this before the multiple parallel queries which can be multiple-reader.

        Andy

Reply via email to