@Test public void testSetNamespaces() { Map<String, String> namespaces = new HashMap<String, String>(); namespaces.put("dummy", "http: boolean forceReload = false; Model jenaGraph = graph.openGraph(forceReload).getGraph(); Map<String, String> map = jenaGraph.getNsPrefixMap(); assertEquals("http: map.get("rdf")); assertEquals("http: assertNull(map.get("dummy")); GraphDescriptor desc = new GraphDescriptor(); desc.namespaces = namespaces; graph.setDescription(desc); jenaGraph = graph.openGraph(forceReload).getGraph(); map = jenaGraph.getNsPrefixMap(); assertEquals("http: map.get("rdf")); assertEquals("http: assertNull(map.get("dummy")); forceReload = true; jenaGraph = graph.openGraph(forceReload).getGraph(); map = jenaGraph.getNsPrefixMap(); assertNull(map.get("rdf")); assertNull(map.get("dcterms")); assertEquals("http: }
public void setNamespaces(Map<String, String> namespaces) { this.namespaces = namespaces; }
JenaGraph implements Graph { public void setNamespaces(Map<String, String> namespaces) { this.namespaces = namespaces; } }
JenaGraph implements Graph { public void setNamespaces(Map<String, String> namespaces) { this.namespaces = namespaces; }  }
JenaGraph implements Graph { public void setNamespaces(Map<String, String> namespaces) { this.namespaces = namespaces; }  @Override void setDescription(GraphDescription graphDescription); void setNamespaces(Map<String, String> namespaces); @Override Map<String, String> getNamespaces(); @Override void add(Statement statement); @Override void add(List<Statement> statements); @Override void remove(Statement statement); @Override void remove(List<Statement> statements); @Override List<Statement> getStatements(); @Override List<Statement> getStatements(Node subject, Node predicate,
            Node object); @Override List<Statement> getStatements(Statement statement); @Override List<Node> getSubjects(Node predicate, Node object); @Override List<Node> getPredicates(Node subject, Node object); @Override List<Node> getObjects(Node subject, Node predicate); @Override boolean hasStatement(Statement statement); @Override boolean hasResource(Resource resource); @Override Long size(); @Override void clear(); @Override QueryResult query(String queryString, String language, String baseURI); @Override boolean read(InputStream in, String lang, String base); @Override boolean read(String path, String lang, String base); @Override boolean write(OutputStream out, String lang, String base); @Override boolean write(String path, String lang, String base); }
JenaGraph implements Graph { public void setNamespaces(Map<String, String> namespaces) { this.namespaces = namespaces; }  @Override void setDescription(GraphDescription graphDescription); void setNamespaces(Map<String, String> namespaces); @Override Map<String, String> getNamespaces(); @Override void add(Statement statement); @Override void add(List<Statement> statements); @Override void remove(Statement statement); @Override void remove(List<Statement> statements); @Override List<Statement> getStatements(); @Override List<Statement> getStatements(Node subject, Node predicate,
            Node object); @Override List<Statement> getStatements(Statement statement); @Override List<Node> getSubjects(Node predicate, Node object); @Override List<Node> getPredicates(Node subject, Node object); @Override List<Node> getObjects(Node subject, Node predicate); @Override boolean hasStatement(Statement statement); @Override boolean hasResource(Resource resource); @Override Long size(); @Override void clear(); @Override QueryResult query(String queryString, String language, String baseURI); @Override boolean read(InputStream in, String lang, String base); @Override boolean read(String path, String lang, String base); @Override boolean write(OutputStream out, String lang, String base); @Override boolean write(String path, String lang, String base);  }