Hi, all Jena gurus:

  These should be two very simple questions for you guys, but I am new to
Jena and Sematic Web in general. I have the following RDF/XML snippet:

  <myNs:myAttr rdf:ID="*_{5E450868-C47D-4CA1-9779-06B003A9DA7D}*">
         <myNs:myAttr2>Foo</spc:myAttr2>
         <myNs:myRef rdf:resource="*#_{27900499-0D9D-4287-8F4D-E4C13BCB3C8D}
*" />
  </myNs:myAttr>

    (1) When I use the following code to loop through the query result:

                Query query = QueryFactory.create("Select ?s ?p ?o where
{?s ?p ?o}");
QueryExecution qexec = QueryExecutionFactory.create(query, model);
ResultSet results = qexec.execSelect();
QuerySolution soln = null;
 while(results.hasNext()) {
try {
                               soln.get("?s")
                        .................

        How do I retrieve the RDFID in the subject?

   (2) How would I compose the SPARQL query to retrieve a single record by
a given RDF ID?

    Thanks you so much in advance!

    - Charles

Reply via email to