org.openprovenance.prov.model.Namespace.qualifiedNameToString()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中org.openprovenance.prov.model.Namespace.qualifiedNameToString()方法的一些代码示例,展示了Namespace.qualifiedNameToString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Namespace.qualifiedNameToString()方法的具体详情如下:
包路径:org.openprovenance.prov.model.Namespace
类名称:Namespace
方法名:qualifiedNameToString

Namespace.qualifiedNameToString介绍

暂无

代码示例

代码示例来源:origin: org.openprovenance.prov/prov-json

@Override
public Bundle newNamedBundle(QualifiedName id, Namespace namespaces,
         Collection<Statement> statements) {
Object bundle = getJSONStructure(currentRecords, currentNamespace);
documentBundles.put(currentNamespace.qualifiedNameToString(id), bundle);
// Reset to document-level records and namespaces
currentRecords = documentRecords;
currentNamespace = documentNamespace;
return null;
}

代码示例来源:origin: lucmoreau/ProvToolbox

@Override
public Bundle newNamedBundle(QualifiedName id, Namespace namespaces,
         Collection<Statement> statements) {
Object bundle = getJSONStructure(currentRecords, currentNamespace);
documentBundles.put(currentNamespace.qualifiedNameToString(id), bundle);
// Reset to document-level records and namespaces
currentRecords = documentRecords;
currentNamespace = documentNamespace;
return null;
}

代码示例来源:origin: org.openprovenance.prov/prov-model

static public String qualifiedNameToString(QualifiedName name) {
Namespace ns=Namespace.getThreadNamespace();
return ns.qualifiedNameToString(name);
}

代码示例来源:origin: org.openprovenance.prov/prov-model

static public String qualifiedNameToString(javax.xml.namespace.QName name) {
Namespace ns=Namespace.getThreadNamespace();
return ns.qualifiedNameToString(name);
}

代码示例来源:origin: lucmoreau/ProvToolbox

static public String qualifiedNameToString(QualifiedName name) {
Namespace ns=Namespace.getThreadNamespace();
return ns.qualifiedNameToString(name);
}

代码示例来源:origin: org.openprovenance.prov/prov-model

static public String qualifiedNameToStringWithNamespace(QualifiedName name) {
 Namespace ns=Namespace.getThreadNamespace();
 return ns.qualifiedNameToString(name);
 }

代码示例来源:origin: org.openprovenance.prov/prov-n

public String idOrMarker(QualifiedName qn) {
  return ((qn == null) ? MARKER : Namespace.getThreadNamespace().qualifiedNameToString(qn));
}

代码示例来源:origin: lucmoreau/ProvToolbox

static public String qualifiedNameToString(javax.xml.namespace.QName name) {
Namespace ns=Namespace.getThreadNamespace();
return ns.qualifiedNameToString(name);
}

代码示例来源:origin: org.openprovenance.prov/prov-json

@Override
public Entity newEntity(QualifiedName id, Collection<Attribute> attributes) {
List<Object[]> attrs = convertAttributes(attributes);
JsonProvRecord record = new JsonProvRecord("entity",
                      currentNamespace.qualifiedNameToString(id),
            attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: org.openprovenance.prov/prov-json

@Override
public AlternateOf newAlternateOf(QualifiedName e2, QualifiedName e1) {
List<Object[]> attrs = new ArrayList<Object[]>();
if (e2 != null)
  attrs.add(tuple("prov:alternate2", currentNamespace.qualifiedNameToString(e2)));
if (e1 != null)
  attrs.add(tuple("prov:alternate1", currentNamespace.qualifiedNameToString(e1)));
String recordID = getBlankID("aO");
JsonProvRecord record = new JsonProvRecord("alternateOf", recordID,
            attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: org.openprovenance.prov/prov-json

@Override
public SpecializationOf newSpecializationOf(QualifiedName e2, QualifiedName e1) {
List<Object[]> attrs = new ArrayList<Object[]>();
if (e2 != null)
  attrs.add(tuple("prov:specificEntity", currentNamespace.qualifiedNameToString(e2)));
if (e1 != null)
  attrs.add(tuple("prov:generalEntity", currentNamespace.qualifiedNameToString(e1)));
String recordID = getBlankID("sO");
JsonProvRecord record = new JsonProvRecord("specializationOf",
            recordID, attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: org.openprovenance.prov/prov-json

@Override
public Agent newAgent(QualifiedName id, Collection<Attribute> attributes) {
List<Object[]> attrs = convertAttributes(attributes);
JsonProvRecord record = new JsonProvRecord("agent",
            currentNamespace.qualifiedNameToString(id),
            attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: lucmoreau/ProvToolbox

@Override
public SpecializationOf newSpecializationOf(QualifiedName e2, QualifiedName e1) {
List<Object[]> attrs = new ArrayList<Object[]>();
if (e2 != null)
  attrs.add(tuple("prov:specificEntity", currentNamespace.qualifiedNameToString(e2)));
if (e1 != null)
  attrs.add(tuple("prov:generalEntity", currentNamespace.qualifiedNameToString(e1)));
String recordID = getBlankID("sO");
JsonProvRecord record = new JsonProvRecord("specializationOf",
            recordID, attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: lucmoreau/ProvToolbox

@Override
public AlternateOf newAlternateOf(QualifiedName e2, QualifiedName e1) {
List<Object[]> attrs = new ArrayList<Object[]>();
if (e2 != null)
  attrs.add(tuple("prov:alternate2", currentNamespace.qualifiedNameToString(e2)));
if (e1 != null)
  attrs.add(tuple("prov:alternate1", currentNamespace.qualifiedNameToString(e1)));
String recordID = getBlankID("aO");
JsonProvRecord record = new JsonProvRecord("alternateOf", recordID,
            attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: lucmoreau/ProvToolbox

@Override
public Entity newEntity(QualifiedName id, Collection<Attribute> attributes) {
List<Object[]> attrs = convertAttributes(attributes);
JsonProvRecord record = new JsonProvRecord("entity",
                      currentNamespace.qualifiedNameToString(id),
            attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: lucmoreau/ProvToolbox

@Override
public Agent newAgent(QualifiedName id, Collection<Attribute> attributes) {
List<Object[]> attrs = convertAttributes(attributes);
JsonProvRecord record = new JsonProvRecord("agent",
            currentNamespace.qualifiedNameToString(id),
            attrs);
this.currentRecords.add(record);
return null;
}

代码示例来源:origin: org.openprovenance.prov/prov-n

@Override
public void startBundle(QualifiedName bundleId, Namespace namespaces) {
  String s = keyword("bundle") + " " + namespaces.qualifiedNameToString(bundleId)
      + breakline();
  s = s + processNamespaces(namespaces);
  writeln(s);
}

代码示例来源:origin: lucmoreau/ProvToolbox

@Override
public void startBundle(QualifiedName bundleId, Namespace namespaces) {
  String s = keyword("bundle") + " " + namespaces.qualifiedNameToString(bundleId)
      + breakline();
  s = s + processNamespaces(namespaces);
  writeln(s);
}

代码示例来源:origin: org.openprovenance.prov/prov-json

private Object[] convertAttribute(Attribute attr) {
  String attrName = currentNamespace.qualifiedNameToString(attr.getElementName());
  Object value = attr.getValue();
  QualifiedName type = attr.getType();
  Object attrValue = convertTypedValue(value, type);
  return tuple(attrName, attrValue);
}

代码示例来源:origin: lucmoreau/ProvToolbox

private Object[] convertAttribute(Attribute attr) {
  String attrName = currentNamespace.qualifiedNameToString(attr.getElementName());
  Object value = attr.getValue();
  QualifiedName type = attr.getType();
  Object attrValue = convertTypedValue(value, type);
  return tuple(attrName, attrValue);
}

相关文章