Julian; It seems the resource region:Capital is not defined in the RDF data graph you have open (the file selected in the form view in Composer). In SPARQL, any item starting with a "?" is a variable (an unknown). Anything with a a URI - <http://xyz> <urn:xyz> or qname with a ":" such as region:Capital - is a resource name that is defined in the RDF graph you are querying (a known). The query editor is smart enough to know what is defined in the data graph and will mark any resource name not defined in red, as the query will not work unless these are defined.
So to get you query to work, you need to do one of two things: 1) replace the region:Capital in your query with a variable name, such as ?capital. You'll note that region:Capital is not defined in your data graph. 2) Define region:Capital in your data graph. -- Scott On Dec 8, 5:09 am, Julian Lee <[email protected]> wrote: > Hello, > > I'm a new TopBraid user and learning TBC by following > the SPARQLMotion tutorial step by step. > When I execute the test query in bottom of page. 20, > it shows nothing in the result area. > I found out that there is a red line under "region:Capital" in the > query editor. But I have added the namespace of "region" already. > Can anybody tell me which step probably wrong ? > > Thanks a lot. -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion 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
