コード例 #1
0
 public Object convertUsed(
     Object id, List<Object> tAttrs, List<Object> otherAttrs, Object activity, Object entity) {
   List tAttrs2 = convertTypeAttributes(tAttrs);
   // List otherAttrs2=convertAttributes(otherAttrs);
   List attrs = new LinkedList();
   attrs.addAll(tAttrs2);
   attrs.addAll(otherAttrs);
   return c.convertUsed(id, activity, entity, null, c.convertAttributes(attrs));
 }
コード例 #2
0
  public Object convertEntity(
      Object id, List<Object> tAttrs, Object lAttr, List<Object> otherAttrs) {
    List tAttrs2 = convertTypeAttributes(tAttrs);
    Object lAttr2 = convertLabelAttribute(lAttr);
    List attrs = new LinkedList();
    if (lAttr2 != null) attrs.add(lAttr2);
    attrs.addAll(tAttrs2);
    attrs.addAll(otherAttrs);

    return c.convertEntity(id, c.convertAttributes(attrs));
  }
コード例 #3
0
 public Object convertWasAssociatedWith(
     Object id,
     List<Object> tAttrs,
     List<Object> otherAttrs,
     Object activity,
     Object agent,
     Object plan) {
   List tAttrs2 = convertTypeAttributes(tAttrs);
   // List otherAttrs2=convertAttributes(otherAttrs);
   List attrs = new LinkedList();
   attrs.addAll(tAttrs2);
   attrs.addAll(otherAttrs);
   return c.convertWasAssociatedWith(id, activity, agent, plan, c.convertAttributes(attrs));
 }
コード例 #4
0
 public List<Object> convertTypeAttributes(List<Object> tAttrs) {
   List attrs = new LinkedList();
   for (Object a : tAttrs) {
     attrs.add(c.convertAttribute("prov:type", a));
   }
   return attrs;
 }
コード例 #5
0
 public Object convertWasDerivedFrom(
     Object id, List<Object> tAttrs, List<Object> otherAttrs, Object effect, Object cause) {
   List tAttrs2 = convertTypeAttributes(tAttrs);
   // List otherAttrs2=convertAttributes(otherAttrs);
   List attrs = new LinkedList();
   attrs.addAll(tAttrs2);
   attrs.addAll(otherAttrs);
   return c.convertWasDerivedFrom(
       id,
       effect,
       cause,
       null, // pe
       null, // g2
       null, // u1
       c.convertAttributes(attrs));
 }
コード例 #6
0
 public Object convertAttributeValue(Element a) {
   String type = a.getAttributeNS(XSI_NS, "type");
   if ((type == null) || ("".equals(type))) {
     System.out.println(
         "----> convertAttributeValue " + type + " " + a.getFirstChild().getNodeValue());
     return a.getFirstChild().getNodeValue();
   } else {
     System.out.println("----> convertAttributeValue " + type);
     return c.convertTypedLiteral(type, "\"" + a.getFirstChild().getNodeValue() + "\"");
   }
 }
コード例 #7
0
 public Object convertContainer(
     Object namespaces,
     List<Object> aRecords,
     List<Object> eRecords,
     List<Object> agRecords,
     List<Object> lnkRecords) {
   List<Object> ll = new LinkedList();
   if (aRecords != null) ll.addAll(aRecords);
   if (eRecords != null) ll.addAll(eRecords);
   if (agRecords != null) ll.addAll(agRecords);
   if (lnkRecords != null) ll.addAll(lnkRecords);
   return c.convertContainer(namespaces, ll);
 }
コード例 #8
0
 public Object convertLabelAttribute(Object a) {
   if (a == null) return null;
   return c.convertAttribute("prov:label", a);
 }
コード例 #9
0
 public Object convertTypedLiteral(String datatype, Object value) {
   return c.convertTypedLiteral(datatype, value);
 }
コード例 #10
0
 public Object convertAttribute(Object name, Object value) {
   return c.convertAttribute(name, value);
 }
コード例 #11
0
 public Object convertSpecializationOf(Object entity2, Object entity1) {
   return c.convertSpecializationOf(entity2, entity1);
 }
コード例 #12
0
 public Object convertAlternateOf(Object entity2, Object entity1) {
   return c.convertAlternateOf(entity2, entity1);
 }