Package org.apache.clerezza.rdf.utils

Examples of org.apache.clerezza.rdf.utils.UnionMGraph


        new PlainLiteralImpl(
          new String(contentHandler.getData(scriptUri)))));

    GraphNode scriptLanguageList = getScriptLanguageList(resource);

    return new GraphNode(resource, new UnionMGraph(resultGraph,
        cgProvider.getContentGraph(), scriptLanguageList.getGraph()));
  }
View Full Code Here


    BNode resultResource = new BNode();
    MGraph contentGraph = cgProvider.getContentGraph();
   
    MGraph additionGraph = new SimpleMGraph();

    UnionMGraph resultGraph = new UnionMGraph(additionGraph, contentGraph);

    RdfList list = RdfList.createEmptyList(resultResource, additionGraph);
    resultGraph.add(new TripleImpl(resource,
        SCRIPTMANAGER.scriptList, resultResource));
    resultGraph.add(new TripleImpl(resultResource, RDF.type,
        SCRIPTMANAGER.ScriptList));
   
    Iterator<Triple> it =
        contentGraph.filter(null, RDF.type, SCRIPT.Script);
    while (it.hasNext()) {
      list.add(it.next().getSubject());
    }
    return new GraphNode(resultResource,
        new UnionMGraph(resultGraph, contentGraph));
  }
View Full Code Here

   
    GraphNode languageList = getScriptLanguageList(resultResource);
   
    GraphNode scriptList = getScriptList(resultResource);
   
    UnionMGraph unionGraph = new UnionMGraph(resultGraph,
        scriptList.getGraph(), languageList.getGraph(), contentGraph);
   
    return new GraphNode(resultResource, unionGraph);
  }
View Full Code Here

    resultGraph.add(new TripleImpl(resultResource,
        RDF.type,
        SCRIPTMANAGER.ExecutionUriOverviewPage));
    GraphNode scriptList = getScriptList(resultResource);
   
    UnionMGraph unionGraph = new UnionMGraph(resultGraph,
        scriptList.getGraph(), contentGraph);
    return new GraphNode(resultResource, unionGraph);
  }
View Full Code Here

        script));
    resultGraph.add(new TripleImpl(resultResource,
        RDF.type,
        SCRIPTMANAGER.ExecutionUriList));
   
    return new GraphNode(resultResource, new UnionMGraph(resultGraph,
        cgProvider.getContentGraph()));
  }
View Full Code Here

            readLock.unlock();
          }
          MGraph temporary = new SimpleMGraph();
          temporary.add(new TripleImpl(agent, PERMISSION.password,
              new PlainLiteralImpl(newPassword)));
          MGraph result = new UnionMGraph(temporary, systemGraph);
          GraphNode mailGraph = new GraphNode(new BNode(), result);
          mailGraph.addProperty(RDF.type, USERMANAGER.PasswordResetMail);
          mailGraph.addProperty(USERMANAGER.recipient, agent);
          List<MediaType> acceptableMediaTypes =
          Collections.singletonList(MediaType.TEXT_PLAIN_TYPE);
View Full Code Here

  }

  private void createUnionGraph() {
    MGraph[] docGraphs = bundle2DocGraphMap.values().
        toArray(new MGraph[bundle2DocGraphMap.size()]);
    unitedDocumentations = new SimpleGraph(new UnionMGraph(docGraphs), true);
  }
View Full Code Here

    node.addProperty(PLATFORM.instance, platformInstance);
    graph.add(new TripleImpl(platformInstance, RDF.type, PLATFORM.Instance));
    graph.add(new TripleImpl(platformInstance, PLATFORM.languages, listNode));
    graph.add(new TripleImpl(listNode, RDF.type, LANGUAGE.LanguageList));
    if (!copyToNode) {
      node = new GraphNode(node.getNode(), new UnionMGraph(graph, configGraph));
    }
    return node;
  }
View Full Code Here

  @GET
  public GraphNode list(@Context UriInfo uriInfo) {
    TrailingSlash.enforcePresent(uriInfo);
    TripleCollection resultGraph = new SimpleMGraph();
    LockableMGraph contentGraph = cgProvider.getContentGraph();
    GraphNode result = new GraphNode(new BNode(), new UnionMGraph(resultGraph, contentGraph));
    RdfList list = new RdfList(result);   
    Lock l = contentGraph.getLock().readLock();
    l.lock();
    try {
      Iterator<Triple> greetings = contentGraph.filter(null, RDF.type, CURIE.CuriePrefixBinding);
View Full Code Here

  @GET
  @Path("get")
  public GraphNode getSingle(@QueryParam("binding") String bindingValue) {
    TripleCollection resultGraph = new SimpleMGraph();
    LockableMGraph contentGraph = cgProvider.getContentGraph();
    MGraph unionMGraph = new UnionMGraph(resultGraph, contentGraph);
    Lock l = contentGraph.getLock().readLock();
    l.lock();
    try {
      GraphNode result = new GraphNode(getBindingWithValue(bindingValue, contentGraph), unionMGraph);
      result.addProperty(RDF.type, PLATFORM.HeadedPage);
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.utils.UnionMGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.