neosemantics
neosemantics copied to clipboard
【question】How to add Property to Relation Type by NSMNTX
Hi, @jbarrasa :
As we all know, OWL could not give any Properties to one of ObjectProperties because it's itself a property.
So, if I want to add some properties to relation in Neo4J by NSMNTX , there is a trick.
I define a relation as a Class in OWL and some DataProperties to it too. I also define 2 ObjectProperties between 3 Classes to express 1 relation with some properties to 2 class node.
for example:
I use: (p:Person {name: "jbarrasa"})-[:workedAs]->(j:Job {type: "VP", beginFrom: "2019-01-01"})-[:existedIn]->(c:Company {name: "Neo4J"})
to express (p:Person {name: "jbarrasa"})-[:workedIn {type: "VP", beginFrom: "2019-01-01"}]->(c:Company {name: "Neo4J"})
but the method I used is not intuitive and humane. what should i do ? (:(
I hope I cleared illustrate my dilemma and very looking forward to your reply.
Sincerely,
Jason.