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

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

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

Namespace.gatherNamespaces介绍

暂无

代码示例

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

public Document toDocument () {
  
  List<Statement> ll=new LinkedList<Statement>();
  
  add1DValues(ll,variables);  
  add2Dvalues(ll,attributes);
  
  Document dummy=pf.newDocument(null,ll,new LinkedList<Bundle>());
  Document result=pf.newDocument(pf.newNamespace(Namespace.gatherNamespaces(dummy)),ll,new LinkedList<Bundle>());
      
  
  return result;
}

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

public Document toDocument_v2 () {
  
  List<Statement> ll=new LinkedList<Statement>();
  
  add1DValues_v2(ll,variables);  
  add2Dvalues_v2(ll,attributes);
  
  Document dummy=pf.newDocument(null,ll,new LinkedList<Bundle>());
  Document result=pf.newDocument(pf.newNamespace(Namespace.gatherNamespaces(dummy)),ll,new LinkedList<Bundle>());
      
  
  return result;
}

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

public Document toDocument_v2 () {
  
  List<Statement> ll=new LinkedList<Statement>();
  
  add1DValues_v2(ll,variables);  
  add2Dvalues_v2(ll,attributes);
  
  Document dummy=pf.newDocument(null,ll,new LinkedList<Bundle>());
  Document result=pf.newDocument(pf.newNamespace(Namespace.gatherNamespaces(dummy)),ll,new LinkedList<Bundle>());
      
  
  return result;
}

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

/**
 * @return the suite of tests being tested
 */

public void updateNamespaces(Document doc) {
Namespace ns=Namespace.gatherNamespaces(doc);
doc.setNamespace(ns);
}

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

/**
 * @return the suite of tests being tested
 */
public void updateNamespaces(Document doc) {
doc.setNamespace(Namespace.gatherNamespaces(doc));
}

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

/**
 * @return the suite of tests being tested
 */
public void updateNamespaces(Document doc) {
  Namespace ns = Namespace.gatherNamespaces(doc);
  doc.setNamespace(ns);
}

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

public Document expander(Document docIn, Bindings bindings1) {
  
  Bundle bun = (Bundle) docIn.getStatementOrBundle().get(0);
  Groupings grp1 = Groupings.fromDocument(docIn);
  logger.debug("expander: Found groupings " + grp1);
  Bundle bun1 = (Bundle) expand(bun, bindings1, grp1).get(0);
  Document doc1 = pf.newDocument();
  doc1.getStatementOrBundle().add(bun1);
  bun1.setNamespace(Namespace.gatherNamespaces(bun1));
  doc1.setNamespace(new Namespace());
  return doc1;
}

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

@Override
public void updateNamespaces(org.openprovenance.prov.model.Document doc) {
Namespace ns=Namespace.gatherNamespaces(doc);
Namespace ns2=new org.openprovenance.prov.sql.Namespace(ns);
doc.setNamespace(ns2);
}

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

/**
 * @return the suite of tests being tested
 */
public void updateNamespaces(Document doc) {
  Namespace ns = Namespace.gatherNamespaces(doc);
  ns.register("provext", "http://openprovenance.org/prov/extension#");
  doc.setNamespace(ns);
}

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

@Override
public void updateNamespaces(org.openprovenance.prov.model.Document doc) {
Namespace ns=Namespace.gatherNamespaces(doc);
Namespace ns2=new org.openprovenance.prov.sql.Namespace(ns);
doc.setNamespace(ns2);
}

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

public Document makeDoc100() {
  Activity a1=pFactory.newActivity(q("a1"));
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(a1);
  doc.getStatementOrBundle().add(a1);
  doc.getStatementOrBundle().add(a1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc300() {
  Agent ag1=pFactory.newAgent(q("ag1"));
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(ag1);
  doc.getStatementOrBundle().add(ag1);
  doc.getStatementOrBundle().add(ag1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc301() {
  Agent ag1=pFactory.newAgent(q("ag1"));
Agent ag2=pFactory.newAgent(q("ag2"));
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(ag1);
doc.getStatementOrBundle().add(ag2);
  doc.getStatementOrBundle().add(ag1);
doc.getStatementOrBundle().add(ag2);
  doc.getStatementOrBundle().add(ag1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc600() {
  Entity e1=pFactory.newEntity(q("e1"));
Entity e2=pFactory.newEntity(q("e2"));
//Activity a1=pFactory.newActivity(q("a1"));
WasDerivedFrom wdf1=pFactory.newWasDerivedFrom(null,e2.getId(),e1.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(wdf1);
  doc.getStatementOrBundle().add(wdf1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc700() {
  Agent ag1=pFactory.newAgent(q("ag1"));
Activity a1=pFactory.newActivity(q("a1"));
WasAssociatedWith waw1=pFactory.newWasAssociatedWith(null,a1.getId(),ag1.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(waw1);
  doc.getStatementOrBundle().add(waw1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc500() {
  Entity e1=pFactory.newEntity(q("e1"));
Activity a1=pFactory.newActivity(q("a1"));
WasGeneratedBy wgb1=pFactory.newWasGeneratedBy(null,e1.getId(),a1.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(wgb1);
  doc.getStatementOrBundle().add(wgb1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc800() {
  Agent ag1=pFactory.newAgent(q("ag1"));
Entity e1=pFactory.newEntity(q("e1"));
WasAttributedTo wat1=pFactory.newWasAttributedTo(null,e1.getId(),ag1.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(wat1);
  doc.getStatementOrBundle().add(wat1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc1000() {
  Entity e1=pFactory.newEntity(q("e1"));
  Entity e2=pFactory.newEntity(q("e2"));
SpecializationOf spec=pFactory.newSpecializationOf(e1.getId(),e2.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(spec);
  doc.getStatementOrBundle().add(spec);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc900() {
  Agent a1=pFactory.newAgent(q("a1"));
Activity a2=pFactory.newActivity(q("a2"));
WasInformedBy wib1=pFactory.newWasInformedBy(null,a2.getId(),a1.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(wib1);
  doc.getStatementOrBundle().add(wib1);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

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

public Document makeDoc1001() {
  Entity e1=pFactory.newEntity(q("e1"));
  Entity e2=pFactory.newEntity(q("e2"));
AlternateOf alt=pFactory.newAlternateOf(e1.getId(),e2.getId());
  Document doc=pFactory.newDocument();
  doc.getStatementOrBundle().add(alt);
  doc.getStatementOrBundle().add(alt);
  Namespace nss=Namespace.gatherNamespaces(doc);
  doc.setNamespace(nss);
  return doc;
}

相关文章