Thanks, this clarifies it. You have selected the whole query, including the SELECT statement, which means that it tries to create a nested SELECT for the function. However, the SELECT only returns a single variable, and nested SELECTs cannot take arguments from the outside. What you need to do instead is just select the part inside of the WHERE clause that you want to generalize, then click Extract SPIN function.

(BTW you may need a large screen resolution for the dialog to see all arguments - I will change this now to also work better with lower resolutions).

HTH
Holger


On 1/30/2015 5:48, Jack Hodges wrote:
Absolutely. In fact, I am copying the SPARQL out of the SPIN rule window for the rule that I created. I am also attaching the screen grab.

SELECT DISTINCT ?plabel
WHERE {
    ?cls (rdfs:subClassOf)* act:ASActivity .
    ?cls rdfs:subClassOf ?par .
    ?par rdfs:label ?plabel .
    ?cls rdfs:label ?clabel .
    {
        FILTER fn:contains(fn:upper-case(?plabel), fn:upper-case(?arg1)) .
    }
    UNION
    {
        FILTER fn:contains(fn:upper-case(?clabel), fn:upper-case(?arg1)) .
    }
    UNION
    {
        ?cls skos:altLabel ?alabel .
        FILTER fn:contains(fn:upper-case(?alabel), fn:upper-case(?arg1)) .
    } .
}

where ?arg1 is a spin:constraint Argument sp:arg1 : xsd:string

I expected that in the Variables and Arguments window I would see every variable and be allowed, as I was for plabel, to associated them with constraints.

This is using V4.2 ME by the way.

Jack

On Thu, Jan 29, 2015 at 2:26 AM, <[email protected] <mailto:[email protected]>> wrote:

    [email protected]
    
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#%21forum/topbraid-users/topics>
        Google Groups
    
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#%21overview>
        
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#%21overview>

    Today's topic summary
    View all topics
    
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#%21forum/topbraid-users/topics>


      * Extract SPIN rule from SPARQL - arguments/parameters
        <#14b353a3c882fc7d_group_thread_0> - 2 Updates

    Extract SPIN rule from SPARQL - arguments/parameters
    
<http://groups.google.com/group/topbraid-users/t/968ccc8dea52bdc?utm_source=digest&utm_medium=email>

    Jack Hodges <[email protected]
    <mailto:[email protected]>>: Jan 28 05:01PM -0800

    As a SPIN noobie I was reading the documentation on SPIN rules and
    noted
    (never knew before) that I can right-click on a functional SPARQL
    query and
    TBC will try to extract a SPIN rule from it. ...more
    
<http://groups.google.com/group/topbraid-users/msg/d53f736de702e175?utm_source=digest&utm_medium=email>

    Holger Knublauch <[email protected]
    <mailto:[email protected]>>: Jan 29 11:06AM +1000

    Hi Jack,

    could you send along an example SPARQL query so that we can make this
    discussion precise?

    Thanks
    Holger


    On 1/29/2015 11:01, Jack Hodges wrote:
    ...more
    
<http://groups.google.com/group/topbraid-users/msg/37a74a02bb3d9d08?utm_source=digest&utm_medium=email>


    Back to top <#14b353a3c882fc7d_digest_top>
    You received this digest because you're subscribed to updates for
    this group. You can change your settings on the group membership
    page
    
<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#%21forum/topbraid-users/join>.
    To unsubscribe from this group and stop receiving emails from it
    send an email to [email protected]
    <mailto:[email protected]>.




--
Jack
--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), 
Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, TopBraid Insight, 
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
--- 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/d/optout.

Reply via email to