Yes, if you have a SM script that does a direct Oracle connection, and
you do SPARQL queries directly afterwards, then the SPARQL will be
executed using Oracle's native SPARQL support. This - of course - does
not know anything about the SMF functions, and various other SPARQL
features. These extensions are used by Jena. In order to make sure
that Jena is used, you need to add some other triple source, and merge
them in. A dummy sml:ApplyConstruct with no triples would be
sufficient. You could try to add this as second input to the module
that does the query.
We need to think about a general solution to this issue in the future.
Holger
On Aug 31, 2009, at 4:12 PM, Catrina wrote:
>
> The smf:definedIn function does not appear to work when the RDF is
> coming from an Oracle database and when used within a SPARQLMotion
> script. I have a Bind By Select module using a smf:definedIn function
> to retrieve the base URI off a resource (where the resource is the ?
> ont from ?ont a owl:Ontology).
>
> I have the same RDF in an Oracle database as well as in an n3 file in
> my local file system.
>
> The SPARQLMotion module retrieves the base URI as expected (using the
> smf:definedIn function) when the imported RDF is from my local file
> system. However, when I import the RDF from the Oracle database, the
> smf:definedIn function does not return the expected value.
>
> I placed the same exact SPARQL query into the SPARQL query editor in
> Composer. Then I opened the Oracle database file, and ran the query
> from the SPARQL editor. I receive the expected results.
>
> The following is the SPARQL query used:
> SELECT ?ontURI
> WHERE {
> ?ont a owl:Ontology .
> ?ont <http://www.ontologies.thomson.com/TRVocabulary#rdfModel> ?
> rdfModel .
> LET (?ontURI := smf:definedIn(?ont)) .
> }
>
> ?ontURI is not bound when importing the RDF from an Oracle database.
>
> If I remove the smf:definedIn line and place ?ont on the SELECT line:
> SELECT ?ont
> WHERE {
> ?ont a owl:Ontology .
> ?ont <http://www.ontologies.thomson.com/TRVocabulary#rdfModel> ?
> rdfModel .
> }
>
> The SPARQLMotion script shows that ?ont is bound even when importing
> from Oracle.
>
> Any suggestions?
>
> ~Catrina
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TopBraid Composer Users" group.
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-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---