bonjour,
j'ai besoin de faire la lecture d'un ontologie pour cela j'utilise le code suivant:
je fait l'execution pas à pas et je trouve l'erreur dans l'instruction
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 /* An ontology. */ private static String ontology = null; /** * An inferencing model. */ private static OntModel model = null; private static void loadOntology(String localOntology) { ontology = localOntology; model.read(ontology); } private static boolean isExactMatching(String LocRequest, String ServiceName) { Iterator iterClass = null; NodeIterator iter = null; OntClass ontClass = null; loadOntology("http://127.0.0.1/ontology/geographydataset.owl#");
Code : Sélectionner tout - Visualiser dans une fenêtre à part model.read(ontology);
Partager