Need help to run the examples of SWP Application Component Library in local composer

24 views
Skip to first unread message

sanjeev devireddy

unread,
Mar 31, 2017, 10:37:29 AM3/31/17
to TopBraid Suite Users
Hi,
       We started looking at SPARQL Web Pages (SWP) components given in the SWP Application Component Library (SWA) documentation (http://localhost:8083/tbl/swp?_viewClass=swadoc:Index). But when we try to copy those examples to our local composer then we see some errors and most of them are related to prefixes.
Below are the some examples that we tried. I hope it may be something to do with configuration or importing some rdf/tdb file into work space. Could some one please help us here to resolve these errors?

And we also want to try these examples with our own Vocabularies loaded in our local EVN or in a remote EVN instance. Could you please let us know is there any configuration or so to be done to work with our own vocabularies(loade in local EVN or in a remote EVN instance) in these SPARQL Web Pages (SWP) components examples?


Default Application example
This example shows the SWA default application in action.
<ui:group let:instanceSelectedEvent="org.widgetapp.instanceSelected">
    <ui:setContext ui:queryGraph="{= ui:graphWithImports(&lt;http://topbraid.org/examples/kennedys&gt;) }">
    <defaultapp:Application/>
</ui:setContext>
</ui:group>

Undefined prefix element name defaultapp:Application

Example: Customized view form for a Person
<swa:ViewForm arg:resource="swadoc:RobertKennedy"/>

Malformed qname swadoc:RobertKennedy


Generic tree example

Malformed SWP expression: Generic Tree for the class {= ui:label(kennedys:Person) } - java.lang.IllegalArgumentException: Malformed SWP expression: {= ui:label(kennedys:Person) } - org.apache.jena.query.QueryParseException: Line 1, column 30: Unresolved prefixed name: kennedys:Person



3.4 Customizing Forms with swa:Objects

Malformed qname swadoc:firstName

Thanks,

Holger Knublauch

unread,
Apr 2, 2017, 6:41:06 PM4/2/17
to topbrai...@googlegroups.com


On 1/04/2017 0:37, sanjeev devireddy wrote:
Hi,
       We started looking at SPARQL Web Pages (SWP) components given in the SWP Application Component Library (SWA) documentation (http://localhost:8083/tbl/swp?_viewClass=swadoc:Index). But when we try to copy those examples to our local composer then we see some errors and most of them are related to prefixes.
Below are the some examples that we tried. I hope it may be something to do with configuration or importing some rdf/tdb file into work space. Could some one please help us here to resolve these errors?

These seem to be all about namespaces used in the examples. If you create your own examples, you may want to (of course) substitute them with your own namespaces. To simulate exactly the same scenario as in the swadoc namespace, simply owl:import the swadoc.ui.ttlx file into your example.



And we also want to try these examples with our own Vocabularies loaded in our local EVN or in a remote EVN instance. Could you please let us know is there any configuration or so to be done to work with our own vocabularies(loade in local EVN or in a remote EVN instance) in these SPARQL Web Pages (SWP) components examples?

I think I'd need more specific context to help with that. There are too many scenarios in which such components could be used, e.g. as widget on a customized form or as a plugin to the regular EVN navigation pages.

Holger





Default Application example
This example shows the SWA default application in action.
<ui:group let:instanceSelectedEvent="org.widgetapp.instanceSelected">
    <ui:setContext ui:queryGraph="{= ui:graphWithImports(&lt;http://topbraid.org/examples/kennedys&gt;) }">
    <defaultapp:Application/>
</ui:setContext>
</ui:group>

Undefined prefix element name defaultapp:Application

Example: Customized view form for a Person
<swa:ViewForm arg:resource="swadoc:RobertKennedy"/>

Malformed qname swadoc:RobertKennedy


Generic tree example

Malformed SWP expression: Generic Tree for the class {= ui:label(kennedys:Person) } - java.lang.IllegalArgumentException: Malformed SWP expression: {= ui:label(kennedys:Person) } - org.apache.jena.query.QueryParseException: Line 1, column 30: Unresolved prefixed name: kennedys:Person



3.4 Customizing Forms with swa:Objects

Malformed qname swadoc:firstName

Thanks,
--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbrai...@googlegroups.com
---
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 topbraid-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages