ObjectPropertyDaoJena changed so it does not try to return an ObjectPropety from a DataProperty.
This commit is contained in:
parent
0d94f3ac4c
commit
9ce168f7c9
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,7 @@ import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
import com.hp.hpl.jena.datatypes.xsd.XSDDatatype;
|
import com.hp.hpl.jena.datatypes.xsd.XSDDatatype;
|
||||||
import com.hp.hpl.jena.ontology.ConversionException;
|
import com.hp.hpl.jena.ontology.ConversionException;
|
||||||
|
import com.hp.hpl.jena.ontology.DatatypeProperty;
|
||||||
import com.hp.hpl.jena.ontology.OntModel;
|
import com.hp.hpl.jena.ontology.OntModel;
|
||||||
import com.hp.hpl.jena.ontology.OntProperty;
|
import com.hp.hpl.jena.ontology.OntProperty;
|
||||||
import com.hp.hpl.jena.ontology.OntResource;
|
import com.hp.hpl.jena.ontology.OntResource;
|
||||||
|
@ -80,6 +81,9 @@ public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectProp
|
||||||
if (op==null) {
|
if (op==null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if( op instanceof DatatypeProperty){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
ObjectProperty p = new ObjectProperty();
|
ObjectProperty p = new ObjectProperty();
|
||||||
try {
|
try {
|
||||||
p.setURI(op.getURI());
|
p.setURI(op.getURI());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue