Hi Andy, On Fri, Aug 2, 2013 at 3:25 AM, Andy Seaborne <[email protected]> wrote:
> https://issues.apache.org/**jira/browse/JENA-497<https://issues.apache.org/jira/browse/JENA-497> > You've hit the nail right on the head here. > > The issue is that you are using sparql.html -- "General SPARQL Service" on > the front page. > Yes, this is the form that I have amended to pull my front end together. I drag and drop queries... which is all working quite nicely. > It is a form to send a query to the server which is not associated with > any datasets. And this causes the NPE. > You have to use "Target graph URI" or put FROM NAMED? in query and the > server will load the data for that query only. > OK so using the *sparql.tpl* form I write the following query PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX mheq: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl# > DESCRIBE ?individual FROM NAMED <MaterialHandlingEquipment.owl> WHERE { ?individual rdf:type mheq:BeltConveyor. } Which works fine, I get my results. @prefix : <http://www.owl-ontologies.com/Ontology1357168977.owl#> . @prefix protege: <http://protege.stanford.edu/plugins/owl/protege#> . @prefix RemoteI: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#RemoteI/> . @prefix xsp: <http://www.owl-ontologies.com/2005/08/07/xsp.owl#> . @prefix LR_Mate_200iB-200iB: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#LR_Mate_200iB-200iB/3> . @prefix mheq: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#> . @prefix AssemblyProcess: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/AssemblyProcess.owl#> . @prefix I: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#I/> . @prefix MaterialHandlingEquipment: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix swrl: <http://www.w3.org/2003/11/swrl#> . @prefix JoiningProcess: < http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/JoiningProcess.owl#> . @prefix swrlb: <http://www.w3.org/2003/11/swrlb#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . MaterialHandlingEquipment:ModelTA_Horizontal_Belt_Conveyor a owl:NamedIndividual , MaterialHandlingEquipment:BeltConveyor ; rdfs:comment "The ModelTA_Horizontal_Belt_Conveyor individual is a representation of the product located a http://www.gilmorekramer.com/more_info/hytrol_ta_conveyor/hytrol_ta_conveyor.shtml. Data type propoerty associations are made in accordance with the power calculation methodology located in \"ENERGY MANAGEMENT\nSERIES 17, FOR INDUSTRY COMMERCE AND INSTITUTIONS, Materials Handling and On-Site Transportation Equipment, Canada."^^xsd:string ; MaterialHandlingEquipment:hasCentreToCentreDistanceBetweenRollers "0.0"^^xsd:double ; MaterialHandlingEquipment:hasCoefficientOfFriction "0.3"^^xsd:double ; MaterialHandlingEquipment:hasConveyorAngleOfIncline "20.0"^^xsd:double ; MaterialHandlingEquipment:hasConveyorLength "30.0"^^xsd:double ; MaterialHandlingEquipment:hasConveyorProductLoading "36.0"^^xsd:double ; MaterialHandlingEquipment:hasConveyorSpeed "0.508"^^xsd:double ; MaterialHandlingEquipment:hasConveyorWidthBetweenFrames "0.84"^^xsd:double . I cannot achieve these results from the *sparql.html* form though even though I specify FROM NAMED in my query. I still get the NPE. The problem is that I do not know that syntax for the Target Graph URI e.g. http://localhost:3030/susman/data?graph=... *susman is the in memory dataset I used when I started the Fuseki server - ./fuseki-server --update --mem /susman I am nearly there with this one. Some last guidance would be really appreciated. Thank you so much. Lewis
