Hello I'm working on a mapping in which a instance receives many class types, depending on some database values.
I have a table "Patients", which lists all patients I have. I d2r:classMap them to 0.0.0.0:Patient. Instances have URI "0.0.0.0/Patient/@@patient_id@@" Then I have a table "Answers", which represents answers to some questions presented in forms. Let's say I have three fields in this table (patient_id, question_id, answer), and if a condition is fulfilled (question_id=148 and answer like 'C50%'), it means that the respective patient belongs to class BreastCancer. Of course, each Patient instance will belong to many classes. I was trying to map this on d2r and found two possible solutions: 1) create a ClassMap for each condition, or 2) create a PropertyBridge for each condition, using the property rdf:type. I can't tell which one is better, considering query performance and "semantic correctness" (like, am I using correctly PropertyBridge?). But I've problems in the past trying to making several ClassMaps to one class. Thanks in advance! -- diogo patrĂ£o
------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________ d2rq-map-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
