Peter; You can edit the mapping file to change the
type of the mapping properties.
Close down all of your D2RQ files for the mapping. Open the
-Mapping graph and open the d2rq:PropertyBridge class. Find the mapped property whose type you want to
change in the instances of d2rq:PropertyBridge. You can then
modify the d2rq:datatype property to the type you want.
A nice enhancement would be to allow one to modify the directly in
the wizard and we will look into this.
-- Scott
On 7/17/12 5:59 AM, Peter B. Andersen
wrote:
With the use of the import wizard I now
have a D2RQ mapping to an Oracle
database. One of the tables has a field of type NUMBER and
this is mapped by
D2RQ into a datatypeproperty where range=decimal. As such this
is probably correct
but the actual data in the database is always of type integer
and I want to reflect that in the ontology.
Changing
the range to integer is possible but doing so is not reflected
in the way
sparql handles the queries. Searches using the
datatypeproperty after changing
the range to integer returns no results if I use an integer as
object variable.
Putting a “.” (dot)
after the integer –
and thereby changing it to a decimal - results in all the
expected result.
Lacking
insight into the inner workings of D2RQ I can’t decide if
there is a right way
to change the range of a datatypeproperty. If there is I would
very much like
to know how this should be done.
Regards,
Peter
--
-- 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
|