next up previous contents
Next: RDF Format Up: Result Previous: Result   Contents

Result as RDF

The RDF graph is pretty printed in the RDF/XML syntax. It is embedded in cos:result markup where cos is the prefix for the Corese namespace. The answer contains the query within a cos:query markup. There may be a natural language title within an cos:title markup. If an error occurs during query processing or if the query fails, there may be a cos:error markup containing an error message.

Each result is printed within an rdf:RDF markup.

Hence a possible result is the following :

<?xml version='1.0' encoding='ISO-8859-1'?>
<cos:result xmlns:cos='http://www.inria.fr/acacia/corese#'>
<cos:query>
<rdf:RDF  
   xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
   xmlns:c='http://www.inria.fr/acacia/comma#'
   xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'>
<c:Something rdf:about='?x =http://www.inria.fr/olivier.corby $join'>
   <c:SomeRelation>
      <rdf:Description rdf:about='?value'/> 
   </c:SomeRelation>
</c:Something> 
</rdf:RDF>
</cos:query>
<rdf:RDF  
   xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
   xmlns:xsd='http://www.w3.org/2001/XMLSchema#'
   xmlns:c='http://www.inria.fr/acacia/comma#'
   xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'>
<c:Employee rdf:about='http://www.inria.fr/olivier.corby'>
<rdf:type rdf:resource='http://www.inria.fr/acacia/comma#Manager'/>
<rdf:type rdf:resource='http://www.inria.fr/acacia/comma#Researcher'/>
   <c:EmployedBy>
      <c:LocalOrganizationGroup rdf:about='http://www-sop.inria.fr/'>
         <rdfs:label>INRIA Sophia Antipolis</rdfs:label>
         <c:Include rdf:resource='http://www.inria.fr/olivier.corby'/>
      </c:LocalOrganizationGroup> 
   </c:EmployedBy>
</c:Employee> 
</rdf:RDF>
</cos:result>



Subsections

Olivier Corby 2005-07-01