Comments (3)
Not sure I understand. Can you give an example?
from d2rq.
Hello, thanks for your answer.
Let's say I have in my Database a table called "Conference" with three attributes : name, date, coordinator.
My ontology has instead a class called "Conference" and another called "Coordinator".
By following the exemple document, I can easily mapp the classmap conference to the ontology class.
map:Conference a d2rq:ClassMap;
d2rq:dataStorage map:database;
d2rq:class myOntology:Conference ;
and the propertybrides to map as properties would be name, date and coordinator.
map:name a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:Conference;
d2rq:property ....
map:date a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:Conference;
d2rq:property ....
map:coordinator a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:Conference;
d2rq:property ....
However, I don't want to map coordinator as a property but as a class instead. How can I do it, if coordinator does not exist as a table in my database?
I hope this exemple is clear. Otherwise I will try to reformulate it.
Thanks again
from d2rq.
Thanks for those details, I think I understand now.
Make a class map for your Coordinator class. Its URI pattern should be based on the Conference.coordinator
column (with an encoding of your choice, see here). The property bridge for the coordinator property should then refer to the Coordinator class map. No join is needed because both class maps are based on the same table.
I'll close this issue but feel free to reopen if this doesn't solve your problem.
from d2rq.
Related Issues (20)
- Error when querying. strange select command: `Incorrect syntax near '=' HOT 10
- Dump-rdf on the getting started page
- Unknown argument -b when calling generate-mapping
- link broken on http://d2rq.org/getting-started HOT 1
- Specify multi-column primary key HOT 1
- Incorrect Turtle file with missing mapping HOT 2
- Chinese tuples data will lead to messy code,such as "%E5%9E%8B%E7%B3%96%E5" HOT 1
- Not able to urlify columns with special characters using uriSqlExpression HOT 3
- hi, I am a student ,I know d2rq support window an linux system,Does d2rq support mac? HOT 2
- What structure & mapping should I provide in order to be able to answer a relational query?
- A possibility to merge ONT-D2RQ codebase into this repo HOT 2
- Error when generating mapping from postgresql database
- Load Native JDBC Library
- d2r-server fails to start due to java version with a component number greater than 255 HOT 3
- Dump RDF output to HDFS HOT 1
- Executing SPARQL queries against a ModelD2RQ- java error HOT 3
- insert statement for sparql HOT 1
- You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near HOT 1
- mapping a class and its subclasses from an entity table and attributes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d2rq.