@Override public Graph getGraph(UriRef name) throws NoSuchEntityException { throw new NoSuchEntityException(name); }
@Override public Graph getMGraph(IRI name) throws NoSuchEntityException { throw new NoSuchEntityException(name); }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { throw new NoSuchEntityException(name); }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { throw new NoSuchEntityException(name); }
@Override public void deleteGraph(IRI name) throws NoSuchEntityException, EntityUndeletableException { if (tripleMap.remove(name) == null) { throw new NoSuchEntityException(name); } }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { Graph tripleCollection = tripleMap.get(name); if (tripleCollection == null) { throw new NoSuchEntityException(name); } else if (ImmutableGraph.class.isAssignableFrom(tripleCollection.getClass())) { return (ImmutableGraph) tripleCollection; } throw new NoSuchEntityException(name); }
@Override public Graph getMGraph(IRI name) throws NoSuchEntityException { Graph tripleCollection = tripleMap.get(name); if (tripleCollection == null) { throw new NoSuchEntityException(name); } else if (!ImmutableGraph.class.isAssignableFrom(tripleCollection.getClass())) { return (Graph) tripleCollection; } throw new NoSuchEntityException(name); }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { Graph tripleCollection = tripleMap.get(name); if (tripleCollection == null) { throw new NoSuchEntityException(name); } else if (ImmutableGraph.class.isAssignableFrom(tripleCollection.getClass())) { return (ImmutableGraph) tripleCollection; } throw new NoSuchEntityException(name); }
@Override public void deleteGraph(IRI name) throws NoSuchEntityException, EntityUndeletableException { if (tripleMap.remove(name) == null) { throw new NoSuchEntityException(name); } }
@Override public Graph getGraph(IRI name) throws NoSuchEntityException { Graph tripleCollection = tripleMap.get(name); if (tripleCollection == null) { throw new NoSuchEntityException(name); } else { return tripleCollection; } }
@Override public Graph getGraph(IRI name) throws NoSuchEntityException { Graph tripleCollection = tripleMap.get(name); if (tripleCollection == null) { throw new NoSuchEntityException(name); } else { return tripleCollection; } }
@Override public synchronized Graph getMGraph(IRI name) throws NoSuchEntityException { if (!mGraphMap.containsKey(name)) { throw new NoSuchEntityException(name); } return mGraphMap.get(name); }
@Override public Graph getMGraph(IRI name) throws NoSuchEntityException { Graph tripleCollection = tripleMap.get(name); if (tripleCollection == null) { throw new NoSuchEntityException(name); } else if (!ImmutableGraph.class.isAssignableFrom(tripleCollection.getClass())) { return (Graph) tripleCollection; } throw new NoSuchEntityException(name); }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { if (!graphMap.containsKey(name)) { throw new NoSuchEntityException(name); } return graphMap.get(name); }
@Override public Graph getMGraph(IRI name) throws NoSuchEntityException { if (name.equals(Constants.SYSTEM_GRAPH_URI)) { return systemGraph; } else { throw new NoSuchEntityException(name); } }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { if (name.equals(DOCUMENTATION_GRAPH_URI)) { return unitedDocumentations; } throw new NoSuchEntityException(name); }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { for (TcProvider provider : providerList) { try { return provider.getImmutableGraph(name); } catch (NoSuchEntityException e) { //we do nothing and try our luck with the next provider } catch (IllegalArgumentException e) { //we do nothing and try our luck with the next provider } } throw new NoSuchEntityException(name); }
@Override public ImmutableGraph getImmutableGraph(IRI name) throws NoSuchEntityException { for (TcProvider provider : providerList) { try { return provider.getImmutableGraph(name); } catch (NoSuchEntityException e) { //we do nothing and try our luck with the next provider } catch (IllegalArgumentException e) { //we do nothing and try our luck with the next provider } } throw new NoSuchEntityException(name); }
@Override public TripleCollection getTriples(UriRef name) throws NoSuchEntityException { if (ENRICHMENT_GRAPH_URI.equals(name)) { return getEnrichmentGraph(); } throw new NoSuchEntityException(name); }
@Override public MGraph getMGraph(UriRef name) throws NoSuchEntityException { if (ENRICHMENT_GRAPH_URI.equals(name)) { return getEnrichmentGraph(); } throw new NoSuchEntityException(name); }