Ejemplo n.º 1
0
 private void createQuotation(QualifiedName contextQ, QualifiedName qualifiedName) {
   List<WasDerivedFrom> wdfs =
       createDerivation(contextQ, qualifiedName, onto.QualifiedName_PROVO_qualifiedQuotation);
   QualifiedName q = onto.QualifiedName_PROVO_Quotation;
   Type type = pFactory.newType(q, name.PROV_QUALIFIED_NAME);
   for (WasDerivedFrom wdf : wdfs) {
     if (!wdf.getType().contains(type)) {
       wdf.getType().add(type);
     }
   }
 }
Ejemplo n.º 2
0
 private void createQuotation(QualifiedName contextQ, QualifiedName qname) {
   List<WasDerivedFrom> wdfs =
       createDerivation(contextQ, qname, onto.QNAME_PROVO_qualifiedQuotation);
   // Object q = pFactory.newQName("prov:Quotation");
   QualifiedName q = onto.QNAME_PROVO_Quotation;
   Type type = pFactory.newType(q, name.XSD_QNAME);
   for (WasDerivedFrom wdf : wdfs) {
     if (!wdf.getType().contains(type)) {
       wdf.getType().add(type);
     }
   }
 }
Ejemplo n.º 3
0
  private void createPrimarySource(QualifiedName context, QualifiedName qname) {
    List<WasDerivedFrom> wdfs =
        createDerivation(context, qname, onto.QNAME_PROVO_qualifiedPrimarySource);
    // Object q = pFactory.newQName("prov:PrimarySource");
    QualifiedName q = onto.QNAME_PROVO_PrimarySource;
    Type type = pFactory.newType(q, name.XSD_QNAME);

    for (WasDerivedFrom wdf : wdfs) {
      if (!wdf.getType().contains(type)) {
        wdf.getType().add(type);
      }
    }
  }