From: <lor...@us...> - 2010-02-15 16:14:56
|
Revision: 2040 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=2040&view=rev Author: lorenz_b Date: 2010-02-15 16:14:49 +0000 (Mon, 15 Feb 2010) Log Message: ----------- Updated Pellet libs to version 2.0.1 . Added new datatype 'date' to enum Datatype and considered converting in OWLAPIConverter. Modified Paths: -------------- trunk/lib/pellet/pellet-core.jar trunk/lib/pellet/pellet-datatypes.jar trunk/lib/pellet/pellet-el.jar trunk/lib/pellet/pellet-explanation.jar trunk/lib/pellet/pellet-modularity.jar trunk/lib/pellet/pellet-owlapi.jar trunk/lib/pellet/pellet-rules.jar trunk/src/dl-learner/org/dllearner/core/owl/Datatype.java trunk/src/dl-learner/org/dllearner/utilities/owl/OWLAPIConverter.java Added Paths: ----------- trunk/lib/owlapi/pellet-owlapiv3.jar Removed Paths: ------------- trunk/lib/owlapi/owlapiV3-bin.jar Deleted: trunk/lib/owlapi/owlapiV3-bin.jar =================================================================== (Binary files differ) Added: trunk/lib/owlapi/pellet-owlapiv3.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/owlapi/pellet-owlapiv3.jar ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/lib/pellet/pellet-core.jar =================================================================== (Binary files differ) Modified: trunk/lib/pellet/pellet-datatypes.jar =================================================================== (Binary files differ) Modified: trunk/lib/pellet/pellet-el.jar =================================================================== (Binary files differ) Modified: trunk/lib/pellet/pellet-explanation.jar =================================================================== (Binary files differ) Modified: trunk/lib/pellet/pellet-modularity.jar =================================================================== (Binary files differ) Modified: trunk/lib/pellet/pellet-owlapi.jar =================================================================== (Binary files differ) Modified: trunk/lib/pellet/pellet-rules.jar =================================================================== (Binary files differ) Modified: trunk/src/dl-learner/org/dllearner/core/owl/Datatype.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/owl/Datatype.java 2010-02-14 22:10:57 UTC (rev 2039) +++ trunk/src/dl-learner/org/dllearner/core/owl/Datatype.java 2010-02-15 16:14:49 UTC (rev 2040) @@ -31,7 +31,8 @@ DOUBLE ("http://www.w3.org/2001/XMLSchema#double"), INT ("http://www.w3.org/2001/XMLSchema#int"), BOOLEAN ("http://www.w3.org/2001/XMLSchema#boolean"), - STRING ("http://www.w3.org/2001/XMLSchema#string"); + STRING ("http://www.w3.org/2001/XMLSchema#string"), + DATE ("http://www.w3.org/2001/XMLSchema#date"); private URI uri; Modified: trunk/src/dl-learner/org/dllearner/utilities/owl/OWLAPIConverter.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/owl/OWLAPIConverter.java 2010-02-14 22:10:57 UTC (rev 2039) +++ trunk/src/dl-learner/org/dllearner/utilities/owl/OWLAPIConverter.java 2010-02-15 16:14:49 UTC (rev 2040) @@ -50,6 +50,7 @@ import org.semanticweb.owl.model.OWLObjectProperty; import org.semanticweb.owl.model.OWLTypedConstant; import org.semanticweb.owl.model.OWLUntypedConstant; +import org.semanticweb.owl.vocab.OWLDatatypeVocabulary; /** * A collection of methods for exchanging objects between OWL API and @@ -177,7 +178,9 @@ return Datatype.INT; else if(uri.equals(Datatype.STRING.getURI())) return Datatype.STRING; - + else if(uri.equals(Datatype.DATE.getURI())){ + return Datatype.DATE; + } throw new Error("Unsupported datatype " + dataType + ". Please inform a DL-Learner developer to add it."); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |