Interroger en SPARQL deux fichier.owl completement différents avec APACHE JENA

Rabah_06 Messages postés 1 Date d'inscription vendredi 15 mai 2020 Statut Membre Dernière intervention 15 mai 2020 - Modifié le 15 mai 2020 à 19:48
@karamel Messages postés 1854 Date d'inscription vendredi 9 mai 2008 Statut Modérateur Dernière intervention 8 avril 2024 - 15 mai 2020 à 19:50
Salut.
Je veut interroger en SPARQL deux fichier.owl completement différents avec APACHE JENA en chargeant leurs contenus de la mnière suivante :

//create an empty model 
Model model = ModelFactory.createDefaultModel(); 
// use the FileManager to find the input file 
InputStream in = FileManager.get().open(inputDataFile); 
if (in == null) { 
System.out.println("Ontology file: " + inputDataFile + " not found"); 
return null; 
} 

// read the RDF/XML file 
model.read(in, ""); 

Mais je sais comment faire pour interroger les deux model et en même temps ????? Veuillez M'AIDER;;;

2 réponses

Whismeril Messages postés 19022 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 17 avril 2024 656
15 mai 2020 à 19:05
0
@karamel Messages postés 1854 Date d'inscription vendredi 9 mai 2008 Statut Modérateur Dernière intervention 8 avril 2024 153
15 mai 2020 à 19:50
le poste originale a été supprimé
0
Rejoignez-nous