Hello Antonio and welcome to the TopBraid forum.

You have a couple of issues here.  The first is the warning that there is "no registered function factory".  Be sure to put your SPIN functions in a file with .spin in the name.  For example, myFunctions.spin.ttl.  TopBraid will register the function for the workspace, allowing it to be called in any context.  This should resolve the issue with registering the SPIN function and you should get the inferences.

For the prefix definition, the out-of-the-box setting uses the SPIN syntax to define the query as a graph.  You have a couple of choices to define the prefix:

1. Define the prefix in the model.  Use the Ontology Home (house icon in the top icon bar) and choose the Overview sub-tab (see Help > TopBraid Composer > User Interface Overview > Resource Editor).  You can define any prefix definition you need and the SPIN rules will pic this up.

2. Set the SPIN preferences to not use SPIN syntax.  This can be found in Preferences > TopBraid Composer > SPIN.  If you're just looking to define PREFIX, then any of the options will do the trick.

Let us know if any of that helps out.

-- Scott

On 1/7/2015 8:31 AM, [email protected] wrote:
Hi all,

I'm enjoying experimenting SPIN rules as federated queries to Linked Data cloud and local Virtuoso stored datasets. The queries I'm trying to implement in SPIN are CONSTRUCT with bif: geospatial functions usage.
I have tried this in TBC FE 4.6 but I get a strange behaviour:

the rule I execute is working under TBC Sparql tab (even if raising "- URI <bif:st_point> has no registered function factory" warnings) producing the expected inference outcome. If I try to execute the same as a spin:rule attached to a class with Run Inference I get no results, also Im unable to add the row  PREFIX bif: <http://www.openlinksw.com/schemas/bif#>  to the rule, this is being deleted after clicking enter.

Query is like:
CONSTRUCT {
    ?this owl:sameAs ?that .
}
WHERE {
    
            ?this foaf:name ?label1 .
            ?this geo:lat ?lat1 .
            ?this geo:long ?long1 .
            ?that <http://any23.org/tmp-musei/Nome> ?label2 .
            ?that <http://any23.org/tmp-musei/Latitudine> ?lat2 .
            ?that <http://any23.org/tmp-musei/Longitudine> ?long2 .
        } .
        FILTER <bif:st_intersects>(<bif:st_point>(xsd:float(?lat1), xsd:float(?long1)), <bif:st_point>(xsd:float(?lat2), xsd:float(?long2)), 0.08) .
    } .
} 
 Any suggestion?

Thanks

Antonino Lo Bue
CNR-ICAR Palermo
--
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.

--
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