@Override public Set<IRI> getNames(ImmutableGraph graph) { final HashSet<IRI> result = new HashSet<IRI>(); if (unitedDocumentations.equals(graph)) { result.add(DOCUMENTATION_GRAPH_URI); } return result; }
@Override public Set<IRI> getNames(ImmutableGraph graph) { //TODO: this method would require to compare the triples within the graph // because an equals check will not work with BlankNodes. Set<IRI> graphNames = new HashSet<IRI>(); for( Iterator<Triple> iterator = graphNameIndex.getGraph().iterator(); iterator.hasNext(); ) { Triple triple = iterator.next(); IRI graphName = new IRI(triple.getSubject().toString()); ImmutableGraph currentGraph = getModelGraph(graphName, false, false).getImmutableGraph(); if(graph.equals(currentGraph)){ graphNames.add(graphName); } } return graphNames; }
BlankNode potentialMatch = (BlankNode)potentialTriple.getObject(); final ImmutableGraph potentialContext = new GraphNode(potentialMatch, mGraph).getNodeContext(); if (potentialContext.equals(context)) { removingTriples.addAll(potentialContext); unGroundedTriples.removeAll(context); BlankNode potentialMatch = (BlankNode)potentialTriple.getSubject(); final ImmutableGraph potentialContext = new GraphNode(potentialMatch, mGraph).getNodeContext(); if (potentialContext.equals(context)) { removingTriples.addAll(potentialContext); unGroundedTriples.removeAll(context);
BlankNode potentialMatch = (BlankNode)potentialTriple.getObject(); final ImmutableGraph potentialContext = new GraphNode(potentialMatch, mGraph).getNodeContext(); if (potentialContext.equals(context)) { removingTriples.addAll(potentialContext); unGroundedTriples.removeAll(context); BlankNode potentialMatch = (BlankNode)potentialTriple.getSubject(); final ImmutableGraph potentialContext = new GraphNode(potentialMatch, mGraph).getNodeContext(); if (potentialContext.equals(context)) { removingTriples.addAll(potentialContext); unGroundedTriples.removeAll(context);