neosemantics icon indicating copy to clipboard operation
neosemantics copied to clipboard

【question】How to add Property to Relation Type by NSMNTX

Open jiaminzou888 opened this issue 5 years ago • 0 comments

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.

jiaminzou888 avatar Nov 20 '19 03:11 jiaminzou888