Erreur

souma dhiab -  
 souma dhiab -
Bonjour,
j'ai exécute un code mais il y a un erreur

" HTTP Status 500 - Internal Server Error

type Exception report

messageInternal Server Error

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.apache.jena.riot.RiotException: [line: 1, col: 1 ] Content is not allowed in prolog.
root cause

org.apache.jena.riot.RiotException: [line: 1, col: 1 ] Content is not allowed in prolog.
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1 logs.

GlassFish Server Open Source Edition 4.1"

qui peut m'aider svvvvvvp

1 réponse

  1. Utilisateur anonyme
     
    Bonjour, sans le code, personne....
    Voir comment utiliser la coloration syntaxique.
    0
    1. souma dhiab
       
      <body>
      <%
      String owlFile = "C:\\Users\\SOUMA\\Documents\\NetBeansProjects\\contexte.owl";

      // Creation d'un modele d'ontologie pour une ontologie OWL-DL avec un resonneur RDFS
      Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);
      // Lecture du fichier OWL. Le Namespace de notre ontologie doit etre specifié
      FileManager.get().readModel( m, owlFile );

      // Construction de la requete
      String queryString = "select ?Age where {?Utilisateur <http://www.semanticweb.org/souma/ontologies/2015/3/untitled-ontology-15#hasAge> ?Age }";

      Query query = QueryFactory.create(queryString) ;
      // Create a single execution of this query, apply to a model
      // which is wrapped up as a Dataset
      QueryExecution qexec = QueryExecutionFactory.create(query, m) ;

      // Execution de la requete
      try {
      // Pour l'instant nous nous limitons a des requetes de type SELECT
      ResultSet rs = qexec.execSelect() ;
      // Affichage des resultats
      while ( rs.hasNext() )
      { QuerySolution rb = rs.nextSolution() ;
      Resource z = (Resource) rb.getResource("Age");
      String k=z.getLocalName().toString();
      out.println("<option>"+ k+" </option>");

      }
      }
      finally{
      qexec.close() ;
      }
      %> </body>
      0
    2. souma dhiab
       
      voila le code,svp m'aideer
      0