J'ai créé une base de données (disque) à l'aide de Stardog 2.0.0.
J'ai chargé mon ontologie et quelques données dans cette base de données.
Je peux voir les axiomes de mon ontologie et ces données lorsque j'exécute la commande suivante:
./stardog query -v --username user --passwd pass dbname "select * where { ?s ?p ?o }"
Ceci est une sélection des axiomes retournés:
?s ?p ?o
| http://www.ugent.be/chest#Infection | rdf:type | owl:Class |
| http://www.ugent.be/chest#Infection | rdf:type | http://www.ugent.be/chest#RespiratoryInfection |
| http://www.ugent.be/chest#Infection | rdf:type | owl:NamedIndividual |
| http://www.ugent.be/chest#Infection | rdfs:subClassOf | http://www.ugent.be/chest#Pathology |
Ceci est une sélection des données retournées:
| <http://www.ugent.be/chest#Infection/4641> | rdf:type | <http://www.ugent.be/chest#Infection> |
| <http://www.ugent.be/chest#Infection/4642> | rdf:type | <http://www.ugent.be/chest#Infection> |
| <http://www.ugent.be/chest#Infection/4643> | rdf:type | <http://www.ugent.be/chest#Infection> |
| <http://www.ugent.be/chest#Infection/4644> | rdf:type | <http://www.ugent.be/chest#Infection> |
Lorsque j'essaie d'exécuter une requête pour récupérer toutes les personnes atteintes d'infection RDF: Type, je n'obtiens rien.
./stardog query -v --username user --passwd pass "chest" "PREFIX : <http://www.ugent.be/chest#> select ?s where { ?s rdf:type :Infection }"
Quand j'ajoute du type de raisonnement QL ou EL, je reçois
:Infection
Quand j'ajoute le type de raisonnement dl, j'obtiens:
com.clarkparsia.pellet.api.term.impl.entity.DataNotImpl cannot be cast to com.clarkparsia.pellet.api.term.entity.ClassExpression
Il en va de même pour un contrôle de cohérence.
Est-ce que je fais quelque chose de mal?