public NamespaceGatherer() { ns.addKnownNamespaces(); ns.setDefaultNamespace(null); }
public NamespaceGatherer() { ns.addKnownNamespaces(); ns.setDefaultNamespace(null); }
private Namespace decodePrefixes(JsonObject bundleStructure) { Namespace ns = new Namespace(); // prefixes prov and xsd are implicit in prov-json ns.addKnownNamespaces(); JsonObject prefixes = getObjectAndRemove(bundleStructure, PROV_JSON_PREFIX); if (prefixes != null) { for (Map.Entry<String, JsonElement> pair : prefixes.entrySet()) { String prefix = pair.getKey(); String uri = pair.getValue().getAsString(); if (prefix.equals("default")) { ns.registerDefault(uri); } else { ns.register(prefix, uri); } } } return ns; }
private Namespace decodePrefixes(JsonObject bundleStructure) { Namespace ns = new Namespace(); // prefixes prov and xsd are implicit in prov-json ns.addKnownNamespaces(); JsonObject prefixes = getObjectAndRemove(bundleStructure, PROV_JSON_PREFIX); if (prefixes != null) { for (Map.Entry<String, JsonElement> pair : prefixes.entrySet()) { String prefix = pair.getKey(); String uri = pair.getValue().getAsString(); if (prefix.equals("default")) { ns.registerDefault(uri); } else { ns.register(prefix, uri); } } } return ns; }
public TreeTraversal(ModelConstructor c, ProvFactory pFactory) { this.c=c; this.pFactory=pFactory; this.name=pFactory.getName(); this.namespace=pFactory.newNamespace(); this.namespace.addKnownNamespaces(); this.vconv=new ValueConverter(pFactory); }
public TreeTraversal(ModelConstructor c, ProvFactory pFactory) { this.c=c; this.pFactory=pFactory; this.name=pFactory.getName(); this.namespace=pFactory.newNamespace(); this.namespace.addKnownNamespaces(); this.vconv=new ValueConverter(pFactory); }
public void addSeed(Document doc, long seed, String name) { Namespace namespace = doc.getNamespace(); QualifiedName qn = namespace.stringToQualifiedName(name, pf); for (StatementOrBundle statement : doc.getStatementOrBundle()) { if (statement instanceof Identifiable) { Identifiable ss = (Identifiable) statement; if ((ss.getId() != null) && (ss.getId().equals(qn))) { namespace.register(TERM_PREFIX, TERM_NS); namespace.addKnownNamespaces(); ((HasOther) ss).getOther() .add(pf.newOther(TERM_NS, "seed", TERM_PREFIX, seed, pf.getName().XSD_LONG)); return; } } } }
localNamespace.addKnownNamespaces(); localNamespace.setParent(namespace);
localNamespace.addKnownNamespaces(); localNamespace.setParent(namespace);