Restriction de type de donnés dans une Ontologie + OWLDatatypeRestriction
Bonjour,
Je travaille sur une base de connaissance sur des indices. J'utilise OWLAPI sous eclipse.
Lorsque j'ajoute des restriction de type de données et que j'execute j'obtiens le message d'erreur suivant:
Citation:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The type OWLDataFactoryImpl must implement the inherited abstract method OWLDataFactory.getOWLDatatypeDefinitionAxiom(OWLDatatype, OWLDataRange)
at uk.ac.manchester.cs.owl.owlapi.OWLDataFactoryImpl.getOWLDatatypeDefinitionAxiom(OWLDataFactoryImpl.java:61)
voici un extrait de mon code:
Code:
1 2 3 4 5 6 7 8
| OWLDatatype floatdatatype = factory.getFloatOWLDatatype();
OWLDatatype integerdatatype = factory.getIntegerOWLDatatype();
//Restriction sur l'interval des données NDVI
OWLDatatype ndviInterval = factory.getOWLDatatype(IRI.create(ontologyIRI + "#hasNdviInterval"));
OWLFacetRestriction maxNDVI = factory.getOWLFacetRestriction(OWLFacet.MAX_EXCLUSIVE, 1);
OWLFacetRestriction minNDVI = factory.getOWLFacetRestriction(OWLFacet.MIN_INCLUSIVE, 0);
OWLDatatypeRestriction NDVIrestriction = factory.getOWLDatatypeRestriction(floatdatatype, maxNDVI,minNDVI);
OWLDatatypeDefinitionAxiom ndviIntervaldatatypeDefaxiom = factory.getOWLDatatypeDefinitionAxiom (ndviInterval , NDVIrestriction); |
Quelqu'un a t il une idée pour la solution?
Merci