Package org.apache.clerezza.rdf.utils

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


    });
    if (agent != null) {
      if (agent.getNode() instanceof UriRef) {
        WebIdInfo webIdInfo = webIdGraphsService.getWebIdInfo((UriRef)agent.getNode());
        MGraph userGraph = webIdInfo.localPublicUserData();
        agent = new GraphNode(agent.getNode(), new UnionMGraph(agent.getGraph(), userGraph));
      }
      node.addProperty(PLATFORM.user, agent.getNode());
      MGraph userContext = new SimpleMGraph(agent.getNodeContext());
      removeTripleWithProperty(userContext, PERMISSION.password);
      removeTripleWithProperty(userContext, PERMISSION.passwordSha1);
View Full Code Here


    Collection<DocumentationItem> docItems = getDocItems(documentations);   
    List<DocumentationItem> sortedDocItems = sortDocItems(docItems);   
    MGraph mGraph = new SimpleMGraph();
    BNode orderedContent = createOrderedContent(sortedDocItems, mGraph);
    BNode titledContent = createTitledContent(orderedContent, mGraph);
    MGraph resultGraph = new UnionMGraph(mGraph, documentations);
    GraphNode resultNode = new GraphNode(titledContent, resultGraph);
    return resultNode;
  }
View Full Code Here

    GraphNode resultNode = new GraphNode(cplNode, resultGraph);

    resultNode.addProperty(RDF.type, CONCEPTS.ManageConceptProvidersPage);
    resultNode.addProperty(RDF.type, PLATFORM.HeadedPage);
    return new GraphNode(resultNode.getNode(),
        new UnionMGraph(resultGraph, contentGraph));
  }
View Full Code Here

   */
  @GET
  public GraphNode GenericResourcePage(@QueryParam("uri") UriRef uri,
      @Context UriInfo uriInfo) {

    GraphNode node = new GraphNode(new BNode(), new UnionMGraph(new SimpleMGraph(),
        cgProvider.getContentGraph(),
        remoteConceptsDescriptionManager.getRemoteConceptsDescriptionMGraph()));
    node.addProperty(RDF.type, PLATFORM.HeadedPage);
    node.addProperty(RDF.type, CONCEPTS.GenericResourcePage);
    if (uri != null) {
View Full Code Here

      int i = 0;
      united[i++] = tcManager.getMGraph(Constants.CONTENT_GRAPH_URI);
      for (UriRef uriRef : additions) {
        united[i++] = tcManager.getTriples(uriRef);
      }
      return new UnionMGraph(united);
    } finally {
      configLock.readLock().unlock();
    }
  }
View Full Code Here

        for (int i = 0; i < tripleCollections.length; i++) {
            tripleCollections[i] = tcManager.getMGraph(recipeIDs.get(i));
        }

        UnionMGraph unionMGraph = new UnionMGraph(tripleCollections);

        RuleList matchingRules = new RuleList();

        try {
View Full Code Here

        for (int i = 0; i < tripleCollections.length; i++) {
            tripleCollections[i] = tcManager.getMGraph(recipeIDs.get(i));
        }

        UnionMGraph unionMGraph = new UnionMGraph(tripleCollections);

        RuleList matchingRules = new RuleList();

        try {
View Full Code Here

        final UriRef serviceUri = new UriRef(resourcePath);
        //the in memory graph to which the triples for the response are added
        final MGraph responseGraph = new IndexedMGraph();
        //A union graph containing both the response specif triples as well
        //as the log-graph
        final UnionMGraph resultGraph = new UnionMGraph(responseGraph, getRequestLogGraph());
        //This GraphNode represents the service within our result graph
        final GraphNode node = new GraphNode(serviceUri, resultGraph);
        //The triples will be added to the first graph of the union
        //i.e. to the in-memory responseGraph
        node.addProperty(RDF.type, Ontology.ResourceResolver);
View Full Code Here

            graph = ci.getMetadata();
        } else {
            TripleCollection[] tcs = new TripleCollection[included.size()+1];
            tcs[0] = ci.getMetadata();
            System.arraycopy(included.values().toArray(), 0, tcs, 1, included.size());
            graph = new UnionMGraph(tcs);
        }
        backend = new ClerezzaBackend(graph);
        this.ci = ci;
        this.readLock = ci.getLock().readLock();
    }
View Full Code Here

            graph = ci.getMetadata();
        } else {
            TripleCollection[] tcs = new TripleCollection[included.size()+1];
            tcs[0] = ci.getMetadata();
            System.arraycopy(tcs, 1, included.values().toArray(), 0, included.size());
            graph = new UnionMGraph(tcs);
        }
        backend = new ClerezzaBackend(graph);
        this.ci = ci;
        this.readLock = ci.getLock().readLock();
    }
View Full Code Here

TOP

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

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.