static public HashSet<QualifiedName> freeAttributeVariables(Statement statement, ProvFactory pf) { HashSet<QualifiedName> result = new HashSet<QualifiedName>(); Collection<Attribute> ll = pf.getAttributes(statement); for (Attribute attr : ll) { if (pf.getName().PROV_QUALIFIED_NAME.equals(attr.getType())) { Object o = attr.getValue(); if (o instanceof QualifiedName) { // if attribute is constructed // properly, this test should // always return true QualifiedName qn = (QualifiedName) o; if (isVariable(qn)) result.add(qn); } } } return result; }
static public HashSet<QualifiedName> freeAttributeVariables(Statement statement, ProvFactory pf) { HashSet<QualifiedName> result = new HashSet<QualifiedName>(); Collection<Attribute> ll = pf.getAttributes(statement); for (Attribute attr : ll) { if (pf.getName().PROV_QUALIFIED_NAME.equals(attr.getType())) { Object o = attr.getValue(); if (o instanceof QualifiedName) { // if attribute is constructed // properly, this test should // always return true QualifiedName qn = (QualifiedName) o; if (isVariable(qn)) result.add(qn); } } } return result; }
if (getName().RDF_LITERAL.equals(attr.getType())&& (aValue instanceof String)) { aValue=vconv.convertToJava(attr.getType(),(String)aValue); case PROV_LOCATION: if (loc!=null) { loc.getLocation().add(newLocation(aValue,attr.getType())); rol.getRole().add(newRole(aValue,attr.getType())); typ.getType().add(newType(aValue,attr.getType())); aval.setValue(newValue(aValue,attr.getType())); res.getOther().add(newOther(attr.getElementName(), aValue, attr.getType())); break;
if (getName().RDF_LITERAL.equals(attr.getType())&& (aValue instanceof String)) { aValue=vconv.convertToJava(attr.getType(),(String)aValue); case PROV_LOCATION: if (loc!=null) { loc.getLocation().add(newLocation(aValue,attr.getType())); rol.getRole().add(newRole(aValue,attr.getType())); typ.getType().add(newType(aValue,attr.getType())); aval.setValue(newValue(aValue,attr.getType())); res.getOther().add(newOther(attr.getElementName(), aValue, attr.getType())); break;
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); }
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); }
if (qualifiedNameURI.equals(attribute.getType().getUri())) {
if (qualifiedNameURI.equals(attribute.getType().getUri())) {
QualifiedName type = attr.getType();
QualifiedName type = attr.getType();