Yes, you would do this for *any* prefix.
-- Scott
On 10/2/2012 4:07 PM, Leonard Jacuzzo
wrote:
Thanks Scott.
I take it I would do the same thing for 'composite:child'.
LFJ
On Tue, Oct 2, 2012 at 4:45 PM, Scott
Henninger <[email protected]>
wrote:
Leonard, I take it
you mean this is a message that appears when
entering queries in the SPARQL View? The prefixes available
to the
SPARQL View are those that are available to the file currently
in
focus - i.e. the current tab in the middle Form view. If you
change
to a different file (by choosing a different tab, for example)
then
the prefixes may or may not be defined - it depends on the
prefixes
defined for the file.
I suspect that is the root of the issue. In terms of defining
prefixes for a query, there are a couple of solutions.
1. Define the prefix in the file. See Help > How to? >
Modify
namespaces and prefixes
2. Define the prefix in the SPARQL query. E.g.:
PREFIX sxml: <http://topbraid.org/sxml>
SELECT *
{ ?s sxml:text ?o
}
-- Scott
On Oct 2, 3:20 pm, Leonard Jacuzzo < [email protected]>
wrote:
> Hi list,
>
> Thanks for all of your help in the past. I have made
good progress.
> However, I have another question.
>
> I am trying to use SPARQL to manipulate the Semantic
XML that I created.
>
> But I keep getting a syntax error of "unresolved
prefix" when I try to use
> triple patterns like the following.
>
> ?textnode *sxml:text* ?P.
>
> This seems to happen sometimes but not others. It
also happens with
> 'composite:child'. I got it to work as a SELECT
query, but when I try
> to export the results or make an Apply CONSTRUCT
module the syntax checker
> complains.
>
> I tried to change the names but cannot.
>
> Is there a work around for this?
>
> Any help will be greatly appreciated.
>
> Best wishes,
>
> Leonard
--
-- 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
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
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
|