humanitiesplusdesign / data-pen

Personal modeling application for Linked Data.
http://hdlab.stanford.edu/fibra
26 stars 0 forks source link

Allow changing properties and user-defined properties #135

Open esjewett opened 7 years ago

esjewett commented 7 years ago

Probably need input from @jiemakel on this one. Changing properties seems pretty straightforward, but I'm not clear on how we would allow user-defined properties. Can a property key be an arbitrary string? Should it be a well-formed URI?

jiemakel commented 7 years ago

A property needs to be a well-defined URI. You can create a new property using our current API just by creating a new item of type OWL.ObjectProperty, and then just use the URI you get out of that as a property.

esjewett commented 7 years ago

Excellent - thanks!

esjewett commented 7 years ago

Depends on #87

cncoleman commented 7 years ago

@jiemakel How do we handle a temporary property vs a formal property that is defined by the user? In other words, Dan creates a placeholder property like "member of group a". He maybe removes that or ignores it. Is there any difference in how it is handled on the backend or is that just a frontend distinction for the user to address?

esjewett commented 7 years ago

@cncoleman These are unsaved or draft properties or entities that the user creates? My impression is that they should follow the same rules as other properties or entities, but probably be persisted only on the front-end until saved. Alternatively, we could maintain them in a different graph on the backend until they are saved. Curious what @jiemakel thinks though.

jiemakel commented 7 years ago

What's a temporary property? If it's just a transient grouping in the UI, then it can live on the frontend. If it has a longer lifespan, I think we should treat is as just another property, enabling the naming, membership, and values to be iterated upon until stable.

esjewett commented 7 years ago

@jiemakel I think this is related to a concept of drafts/sketching that we discussed in the in-person meetings. Probably needs to be fleshed out more before an implementation decision is made.