Andy and Osma,

1) I've updated to the jena-fuseki-1.1.2-SNAPSHOT version.

2) I'm starting Fuseki as:
cd \jena\jena-fuseki-1.1.2-SNAPSHOT
call fuseki-server --update --config=e:\abc\project1\fuseki1.ttl

3) assembler file: (minus the comments)
@prefix fuseki:  <http://jena.apache.org/fuseki#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tdb:     <http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix :        <#> .

[] rdf:type fuseki:Server ;

fuseki:services (
     <#service2>
) .

# Declaration additional assembler items.
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .

# TDB
tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .

<#service2> rdf:type fuseki:Service ;
fuseki:name                     "aronat" ;   # http://www.i-a-i.com/abc
fuseki:serviceQuery             "query" ;    # SPARQL query service
fuseki:serviceReadGraphStore    "data" ;     # SPARQL Graph store protocol 
(read only)
 fuseki:dataset           <http://www.i-a-i.com/aronat> .

<http://www.i-a-i.com/aronat>    rdf:type ja:RDFDataset ;
rdfs:label "Aronat" ;
ja:defaultGraph
      [ rdfs:label "ABC for ABC" ;
        a ja:MemoryModel ;
        ja:content [ja:externalContent <file:structure.0001.ttl> ] ;
        ja:content [ja:externalContent <file:abc.0001.ttl> ] ;
] .

4) The HTML file:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>View ABC Ontology</title>
<link href="../_css/site.css" rel="stylesheet">
<script src="../_js/jquery-1.7.2.min.js"></script>
<script>
var q1 = "PREFIX abc: <http://www.i-a-i.com/odcs#>\n"
+    "PREFIX owl:  <http://www.w3.org/2002/07/owl#>\n"
    +    "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"
    +    "PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n\n"
+    "SELECT  ?t ?l\n"
    +    "WHERE   { ?t a owl:Thing .\n"
    +    "      OPTIONAL\n"
    +    "          { ?s rdfs:label ?l }\n"
    +    "        }\n\n"
    +    " ORDER BY ?t ";

var url = "http://localhost:3030/query";;
// also tried with "http://localhost:3030"; with same result

$(document).ready(function() {
var jqXHR = $.post( url, q1 );
    jqXHR.done( function( data ) {
        var reply =  $( data ).find( "#content" );
        $( "#result" ).empty().append( reply );
});     // end done

}); // end ready
</script>
</head>
<body>
<div class="main">
<h1>List of classes descendant from owl:Thing</h1>
<div id="result" >
<!-- to be filled in-->
</div>
</body>
</html>

I see the <h1> in the output, but nothing else.

Dave Patterson



________________________________
This message and all attachments are PRIVATE, and contain information that is 
PROPRIETARY to Intelligent Automation, Inc. You are not authorized to transmit 
or otherwise disclose this message or any attachments to any third party 
whatsoever without the express written consent of Intelligent Automation, Inc. 
If you received this message in error or you are not willing to view this 
message or any attachments on a confidential basis, please immediately delete 
this email and any attachments and notify Intelligent Automation, Inc.

Reply via email to