From a461e5a540e65d6e8daa91f70797e657f9f17992 Mon Sep 17 00:00:00 2001 From: Guohui Xiao Date: Wed, 19 Jun 2013 13:45:28 +0200 Subject: [PATCH] fix owl-dataproperties --- sh/owl-objectproperties | 2 +- src/OWLObjectProperties.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/owl-objectproperties b/sh/owl-objectproperties index 4249341..4250fdd 100755 --- a/sh/owl-objectproperties +++ b/sh/owl-objectproperties @@ -15,4 +15,4 @@ else java=java fi -${java} -cp ${DIR}/owl-toolkit.jar OWLDataProperties "$@" +${java} -cp ${DIR}/owl-toolkit.jar OWLObjectProperties "$@" diff --git a/src/OWLObjectProperties.java b/src/OWLObjectProperties.java index b1854a7..f05c207 100644 --- a/src/OWLObjectProperties.java +++ b/src/OWLObjectProperties.java @@ -1,7 +1,7 @@ import java.io.File; import org.semanticweb.owlapi.apibinding.OWLManager; -import org.semanticweb.owlapi.model.OWLDataProperty; +import org.semanticweb.owlapi.model.OWLObjectProperty; import org.semanticweb.owlapi.model.OWLOntology; import org.semanticweb.owlapi.model.OWLOntologyCreationException; @@ -18,7 +18,7 @@ public static void main(String... args) throws OWLOntologyCreationException { System.err.println("Ontology " + ontology.getOntologyID().getOntologyIRI()); - for (OWLDataProperty property : ontology.getDataPropertiesInSignature()) { + for (OWLObjectProperty property : ontology.getObjectPropertiesInSignature()) { System.out.println(property); } }