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

Reply via email to