Пример #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);
     }
   }
 }
 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);
     }
   }
 }
  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);
      }
    }
  }