com.hp.hpl.jena.sparql.core.assembler
Class AssemblerUtils

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.assembler.AssemblerUtils

public class AssemblerUtils
extends Object


Constructor Summary
AssemblerUtils()
           
 
Method Summary
static Object build(String assemblerFile, Resource type)
           
static Object build(String assemblerFile, String typeURI)
           
static void init()
           
static PrefixMapping readPrefixMapping(String file)
           
static void registerWith(com.hp.hpl.jena.assembler.assemblers.AssemblerGroup g)
           
static void setContext(Resource r, Context context)
          Look for and set context declarations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblerUtils

public AssemblerUtils()
Method Detail

readPrefixMapping

public static PrefixMapping readPrefixMapping(String file)

init

public static void init()

registerWith

public static void registerWith(com.hp.hpl.jena.assembler.assemblers.AssemblerGroup g)

build

public static Object build(String assemblerFile,
                           String typeURI)

build

public static Object build(String assemblerFile,
                           Resource type)

setContext

public static void setContext(Resource r,
                              Context context)
Look for and set context declarations. e.g.
 root ... ;
   ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "10000" ] ;
   ...
 
Short name forms of context parameters can be used. Setting as string "undef" will remove the context setting.



Licenced under the Apache License, Version 2.0