popolo-project / popolo-spec

International legislative data specifications
http://www.popoloproject.com/
99 stars 18 forks source link

Missing embedding properties #76

Closed jpmckinney closed 9 years ago

jpmckinney commented 9 years ago

The original set of classes lack properties for embedding the newer classes, e.g. Organization lacks a motions property.

akuckartz commented 9 years ago

For JSON-LD this probably will make it necessary to create a subclass of org:Organization. Maybe opengov:Organization ;-)

jpmckinney commented 9 years ago

It's possible to add properties to classes belonging to other namespaces.

girogiro commented 9 years ago

Organization has property parent. Perhaps it should have also a reverse children property.

jpmckinney commented 9 years ago

Thanks, @girogiro ! Forgot that. I'll try to do this today.

akuckartz commented 9 years ago

It is possible, yes, but not recommended. I will attempt to provide reasons later.

[EDIT: I withdraw that statement. One can legitimately add properties to classes belonging to other namespaces (as long as one controls the namespace of the property).]

jpmckinney commented 9 years ago

@akuckartz Please open a new issue when ready.

I've added to JSON Schema:

For JSON-LD contexts, I'll have to think of appropriate inverse property names, i.e. inverses of opengov:area, gn:parentFeature, schema:publisher, schema:organizer, schema:agent, and schema:creator.

Update: Instead found JSON-LD reverse properties. Had searched for "inverse" earlier.

jpmckinney commented 9 years ago

JSON-LD contexts are done too!