|
Cosmas; Others may have more specific help in terms
of the SPIN API, but one thought is whether you are importing the SPIN library when trying to
execute the inference? Chances are, there is a missing file
- and one way to to
find it is to look at your model in Composer.
Make sure all of the files used in Composer to run the rule successfully are present in
your Java code. Also I couldn't help but look at your Java (not JSP) code and present the much simpler and more maintainable SWP syntax as something to consider. This takes 2 objects because I decided to place the SPARQL in a template as opposed to embedding it in the tags. subclass of spin:SelectTemplate named :PriceType: SELECT ?a ?b WHERE { ?s :resto_name ?a . ?s :price_type ?b . } subclass of ui:Element named :displayTable: <ui:call ui:template=":PriceType"> Found {= spr:rowCount(?rs) } triples <br/>This is the data <br/> <table border='1'> <ui:forEach ui:resultSet="{= ?rs }"> <tr><td>{= ?a }</td> <td>{= ?b }</td></tr> </ui:forEach> </table> </ui:call> Note how, as is done in JSP etc., the HTML/XML (any text really) is defined directly with processing directives ( {= } ) embedded in the text. And since this snippet is named, it becomes a custom tag, <:displayTable/>, that can be used anywhere in other XML snippets or called as a Web service. I.e. the above creates a custom tag and custom tags are defined using SPARQL/XHTML/_javascript_ all the way down. For more on SWP take a look at these links: - http://uispin.org/ - http://www.topquadrant.com/swp/ - Composer Help at opBraid Composer > Developing Semantic Web Applications > SPARQL Web Pages Overview Again, just something to consider... -- Scott On 3/8/2013 2:48 AM, cosmas haryawan
wrote:
Dear all, -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. |
- [topbraid-users] Empty Result using SPINInference in JSP cosmas haryawan
- Re: [topbraid-users] Empty Result using SPINInferenc... Scott Henninger
- Re: [topbraid-users] Empty Result using SPINInfe... Holger Knublauch
- [topbraid-users] Re: Empty Result using SPINInferenc... cosmas haryawan
- [topbraid-users] Re: Empty Result using SPINInferenc... cosmas haryawan
