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