Mingzhen;  The D2RQ mapping created by Composer is a default mapping.
You can manipulate how this mapping occurs through the -Mapping.owl
file and -Schema.owl files.  For example, you can specify how
properties (ontology world) are created from tables (relational world)
through instances of the PropertyBridge and ClassMap properties.

For the most part, D2RQ only knows about tables, so you will need to
re-create the view by manipulating the mapping or through post-
processing - i.e. SPARQLMotion scripts.

In terms of this example, it seems to me that you can do this through
the mapping.  You'd create a class mapping (instance of ClassMap) for
the view (my_view).  Then two properties (instances of PropertyBridge)
that are linked to my_view by the belongsToClassMap property.

To apply your new mapping, close the -Test.owl file and re-load.  This
file imports the schema and mapping file and will therefore apply the
edited definitions.

For specifics on the mapping ontology, see
http://www4.wiwiss.fu-berlin.de/bizer/d2rq/spec/#specification

-- Scott

On Apr 10, 10:52 am, mwz <[email protected]> wrote:
> I am using D2RQ to generate a rdf view for contents in an oracle
> database. I found out TopBraid or D2RQ cannot process 'view' in oracle
> correctly. The view is taken as a whole, so whatever records in a
> view, it is taken as bags of values for different attributes. For
> example, I have a materialized view that has five records as follow:
> ITEM_ID,LEN
> 871605,25668.5524219754
> 871607,25676.4279991913
> 871609,25676.4279991913
> 871611,25684.2896538871
> 871613,25684.2896538871
>
> The Topbraid version shows the following information:
>
> schema:mWEI_TestMView has an instance db:MWEI.TestMView
> db:MWEI.TestMView has two attribtues:
>   schema:TestMView_item_id that has values: 871605, 871607, 871609,
> 871611, 871613
>   schema:TestMView_len has values: 25668.5524219754, 25676.4279991913,
> and 25684.2896538871.
>
> Sparql query shows that these values are not paired as in database.
>
> So view or materialized views are supposed to work this way? What
> would be the solution? Thank you very much.
>
> Mingzhen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to