congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Factory.createGraphMem
Code IndexAdd Tabnine to your IDE (free)

How to use
createGraphMem
method
in
com.hp.hpl.jena.graph.Factory

Best Java code snippets using com.hp.hpl.jena.graph.Factory.createGraphMem (Showing top 15 results out of 315)

origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Answer a memory-based Graph with the Standard reification style.
*/
public static Graph createDefaultGraph()
  { return Factory.createGraphMem( ); }
     
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** Create a graph that is a Jena memory graph 
 * @see #createDefaultGraph
 */
public static Graph createGraphMem()
{
  return Factory.createGraphMem() ;
}
origin: com.hp.hpl.jena/arq

/** Create a graph that is a Jena memory graph 
 * @see #createDefaultGraph
 */
public static Graph createGraphMem()
{
  return Factory.createGraphMem() ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

public Delta(Graph base)
{
  super(Factory.createGraphMem(), Factory.createGraphMem()) ;
  this.base = base ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

public Graph create()
{ return Factory.createGraphMem(); }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Answer a new memory-based model with the given reification style
  @deprecated     Hidden partial reifications not supported -- only style "Standard" 
*/
@Deprecated 
public static Model createDefaultModel( ReificationStyle style )
  { return new ModelCom( Factory.createGraphMem( ) ); }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
   Answer a new graph which is the reachable subgraph from <code>node</code>
   in <code>graph</code> with the terminating condition given by the
   TripleBoundary passed to the constructor.
*/
public Graph extract( Node node, Graph graph )
  { return extractInto( Factory.createGraphMem(), node, graph ); }

origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Answer a fresh Model with the default specification.
*/
public static Model createDefaultModel()
  { return new ModelCom( Factory.createGraphMem( ) ); }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Constructor.
 * @param graph the inference graph which owns this context.
 */
public BFRuleContext(ForwardRuleInfGraphI graph) {
  this.graph = graph;
  env = new BindingStack();
  stack = new ArrayList<Triple>();
  pending = new ArrayList<Triple>();
  pendingCache = Factory.createGraphMem();
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Create a graph and record it with the given name in the local map.
 */
@Override
public Graph createGraph( String name, boolean strict )
{
  GraphMemBase already = (GraphMemBase) graphs.get( name );
  if (already == null)
  {
    Graph result = Factory.createGraphMem( );
    graphs.put( name, result );
    return result;            
  }
  else if (strict)
    throw new AlreadyExistsException( name );
  else
    return already.openAgain();
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/** 
 * Create the graph used to hold the deductions. Can be overridden
 * by subclasses that need special purpose graph implementations here.
 * Assumes the graph underlying fdeductions and associated SafeGraph
 * wrapper can be reused if present thus enabling preservation of
 * listeners. 
 */
protected Graph createDeductionsGraph() {
  if (fdeductions != null) {
    Graph dg = fdeductions.getGraph();
    if (dg != null) {
      // Reuse the old graph in order to preserve any listeners
      safeDeductions.clear();
      return dg;
    }
  }
  Graph dg = Factory.createGraphMem( ); 
  safeDeductions = new SafeGraph( dg );
  return dg;
}

origin: com.github.ansell.pellet/pellet-common

public JenaBasedELClassifier() {
  m_Names = new NameStore();
  m_Variables = new VariableStore();
  m_Rules = CollectionUtils.makeSet();
  m_Facts =  Factory.createGraphMem( ReificationStyle.Standard );
  
  TOP = m_Names.get(ATermUtils.TOP);
  BOTTOM = m_Names.get(ATermUtils.BOTTOM);
  makeRuleAxioms();
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Perform any initial processing and caching. This call is optional. Most
 * engines either have negligable set up work or will perform an implicit
 * "prepare" if necessary. The call is provided for those occasions where
 * substantial preparation work is possible (e.g. running a forward chaining
 * rule system) and where an application might wish greater control over when
 * this prepration is done.
 */
@Override
public synchronized void prepare() {
  if (this.isPrepared()) return;
  
  fdeductions = new FGraph( Factory.createGraphMem() );
  extractAxioms();
  dataFind = fdata;
  if (fdeductions != null) {
    dataFind = FinderUtil.cascade(dataFind, fdeductions);
  }
  if (fschema != null) {
    dataFind = FinderUtil.cascade(dataFind, fschema);
  }
  
  this.setPreparedState(true);
}
origin: net.sf.xsparql/xsparql-evaluator-legacy

private static Model readModel(String uri) {
 Graph g = Factory.createGraphMem();
 // Use the mapped uri as the syntax hint.
 String syntax = null;
 {
  String altURI = FileManager.get().mapURI(uri);
  if (altURI != null)
   syntax = FileUtils.guessLang(uri);
 }
 // Temporary model wrapper
 Model m = ModelFactory.createModelForGraph(g);
 RDFReader r = m.getReader(syntax);
 InputStream in = FileManager.get().open(uri);
 if (in == null)
  // Not found.
  throw new NotFoundException("Not found: " + uri);
 r.read(m, in, uri);
 return m;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

Graph inserts = Factory.createGraphMem();
for (Iterator<RulePreprocessHook> i = preprocessorHooks.iterator(); i.hasNext(); ) {
  RulePreprocessHook hook = i.next();
com.hp.hpl.jena.graphFactorycreateGraphMem

Popular methods of Factory

  • createDefaultGraph
    Answer a memory-based Graph with the Standard reification style.

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JOptionPane (javax.swing)
  • JPanel (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now