Hello Bob,
Thank you again. That is exactly what I have now: the ontology file and the
mapping file. The problem is that, as far as I know, D2R Server only gets one
argument and it is the mapping file, so the ontology schema is totally useless.
Do you know if I am wrong?
I know that I can use D2RQ to get a dump of the data and generate the ontology,
but my database data is continuously changing, so I prefer using a mapping
approach.
Regarding to your last proposed solution, I'll think about it. I think I will
have to generate many conditional mappings with the resulting overload.
Best,jfcg
> Date: Sat, 23 Jul 2011 21:52:17 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [d2rq-dev] Custom mappings in D2R Server
>
> Hi again Juan,
>
> why don't you simply create such sub class relation etc. in your
> separate ontology definition that you are utilising in the mapping? So
> your ontology definition is separated from the mapping.
> I do not really know, but AFAIK D2R has no inferencing engine yet. So I
> believe it won't do that job for you. However, you can dump your triples
> and load them in a proper triple store and do the inferencing there.
> Another opportunity is the definition of two class maps for each table -
> one with the specific class and one with the super class.
>
> Cheers,
>
>
> Bob
>
>
> Am 23.07.2011 21:17, schrieb Juan Francisco Contreras Gaitan:
> > Hi Bob,
> >
> > Thank you for your prompt answer. I've read the specs of d2rq, actually
> > I've already used d2rq before, but I have no experience with D2R Server
> > and I can't find a solution to my problem.
> >
> > In the example I mentioned before I can't create a d2rq:classMap for
> > Person class because it doesn't exist as such in the database. It is a
> > new class I want to create for the ontology.
> >
> > Is there a way of creating that class?
> >
> > I hope I've explained better this time.
> >
> > Thank you again,
> > jfcg
> >
> > > Date: Sat, 23 Jul 2011 19:12:59 +0100
> > > From: [email protected]
> > > To: [email protected]
> > > Subject: Re: [d2rq-dev] Custom mappings in D2R Server
> > >
> > > Hi Juan,
> > >
> > > for your intended use case you have to create your mapping file (more or
> > > less) manually and relate the classes and/or properties of your ontology
> > > via d2rq:class (if it is a d2rq:classMap instance) or d2rq:property (if
> > > it is a d2rq:PropertyBridge). Please have a look at the D2RQ manual [1]
> > > which should explain the different parts of a D2RQ mapping.
> > >
> > > Cheers,
> > >
> > >
> > > Bob
> > >
> > >
> > > [1] http://www4.wiwiss.fu-berlin.de/bizer/d2rq/spec/
> > >
> > >
> > > Am 23.07.2011 13:21, schrieb Juan Francisco Contreras Gaitan:
> > > > Hello,
> > > >
> > > > I have a doubt about how to use custom mapping within D2R Server. I
> > used
> > > > to use TopBraid Composer as a D2RQ GUI. There, you have an ontology
> > file
> > > > and a mapping file which storages the relationships between the
> > ontology
> > > > and the database. Before Topbraid, I was coding with D2RQ library.
> > > >
> > > > Now, I am developing a D2R Server but I don't find any way of mapping
> > > > between an existing ontology and a database. If I am right, the
> > ontology
> > > > is created by the server from the database, and this mapping can be
> > > > customized (please correct me if I am wrong and I can reuse an existing
> > > > ontology).
> > > >
> > > > My idea is to reproduce my ontology in the mapping D2R Server file. My
> > > > ontology is not very complex so I think this is feasible. Nevertheless,
> > > > I don't know how to do simple things like creating a class hierarchy.
> > > >
> > > > Having a simple class hierarchy like:
> > > >
> > > > - Person
> > > > --- Student
> > > > --- Teacher
> > > >
> > > > Being Student and Teacher subclasses of Person, how can I get this in
> > > > D2R Server if I only have Student and Teacher tables in the database
> > > > (Person is new class I would like to create in the ontology)?
> > > >
> > > > I've tried to use "d2rq:additionalClassDefinitionProperty" with
> > > > "rdfs:subClassOf", but I have no luck.
> > > >
> > > > Thank you,
> > > > jfcg
>
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel