|
|
@ -20,28 +20,28 @@ class Person extends StructuredNode {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_father() {
|
|
|
|
get_father() {
|
|
|
|
return this.json.father
|
|
|
|
return this._get_relation('father')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_father(ref) {
|
|
|
|
link_father(ref) {
|
|
|
|
return this._link_property('father', ref)
|
|
|
|
return this._link_relation('father', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_father(ref) {
|
|
|
|
unlink_father(ref) {
|
|
|
|
return this._unlink_property('father', ref)
|
|
|
|
return this._unlink_relation('father', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_mother() {
|
|
|
|
get_mother() {
|
|
|
|
return this.json.mother
|
|
|
|
return this._get_relation('mother')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_mother(ref) {
|
|
|
|
link_mother(ref) {
|
|
|
|
return this._link_property('mother', ref)
|
|
|
|
return this._link_relation('mother', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_mother(ref) {
|
|
|
|
unlink_mother(ref) {
|
|
|
|
return this._unlink_property('mother', ref)
|
|
|
|
return this._unlink_relation('mother', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -82,15 +82,15 @@ class Person extends StructuredNode {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_places() {
|
|
|
|
get_places() {
|
|
|
|
return this.json.places
|
|
|
|
return this._get_relation('places')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_places(ref) {
|
|
|
|
link_places(ref) {
|
|
|
|
return this._link_property('places', ref)
|
|
|
|
return this._link_relation('places', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_places(ref) {
|
|
|
|
unlink_places(ref) {
|
|
|
|
return this._unlink_property('places', ref)
|
|
|
|
return this._unlink_relation('places', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -116,28 +116,28 @@ class Event extends StructuredNode {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_participants() {
|
|
|
|
get_participants() {
|
|
|
|
return this.json.participants
|
|
|
|
return this._get_relation('participants')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_participants(ref) {
|
|
|
|
link_participants(ref) {
|
|
|
|
return this._link_property('participants', ref)
|
|
|
|
return this._link_relation('participants', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_participants(ref) {
|
|
|
|
unlink_participants(ref) {
|
|
|
|
return this._unlink_property('participants', ref)
|
|
|
|
return this._unlink_relation('participants', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_places() {
|
|
|
|
get_places() {
|
|
|
|
return this.json.places
|
|
|
|
return this._get_relation('places')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_places(ref) {
|
|
|
|
link_places(ref) {
|
|
|
|
return this._link_property('places', ref)
|
|
|
|
return this._link_relation('places', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_places(ref) {
|
|
|
|
unlink_places(ref) {
|
|
|
|
return this._unlink_property('places', ref)
|
|
|
|
return this._unlink_relation('places', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -160,15 +160,15 @@ class Event extends StructuredNode {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_related_events() {
|
|
|
|
get_related_events() {
|
|
|
|
return this.json.related_events
|
|
|
|
return this._get_relation('related_events')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_related_events(ref) {
|
|
|
|
link_related_events(ref) {
|
|
|
|
return this._link_property('related_events', ref)
|
|
|
|
return this._link_relation('related_events', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_related_events(ref) {
|
|
|
|
unlink_related_events(ref) {
|
|
|
|
return this._unlink_property('related_events', ref)
|
|
|
|
return this._unlink_relation('related_events', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -203,15 +203,15 @@ class Place extends StructuredNode {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_visitors() {
|
|
|
|
get_visitors() {
|
|
|
|
return this.json.visitors
|
|
|
|
return this._get_relation('visitors')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_visitors(ref) {
|
|
|
|
link_visitors(ref) {
|
|
|
|
return this._link_property('visitors', ref)
|
|
|
|
return this._link_relation('visitors', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_visitors(ref) {
|
|
|
|
unlink_visitors(ref) {
|
|
|
|
return this._unlink_property('visitors', ref)
|
|
|
|
return this._unlink_relation('visitors', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -237,28 +237,28 @@ class Image extends StructuredNode {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_pictured() {
|
|
|
|
get_pictured() {
|
|
|
|
return this.json.pictured
|
|
|
|
return this._get_relation('pictured')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_pictured(ref) {
|
|
|
|
link_pictured(ref) {
|
|
|
|
return this._link_property('pictured', ref)
|
|
|
|
return this._link_relation('pictured', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_pictured(ref) {
|
|
|
|
unlink_pictured(ref) {
|
|
|
|
return this._unlink_property('pictured', ref)
|
|
|
|
return this._unlink_relation('pictured', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_place() {
|
|
|
|
get_place() {
|
|
|
|
return this.json.place
|
|
|
|
return this._get_relation('place')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link_place(ref) {
|
|
|
|
link_place(ref) {
|
|
|
|
return this._link_property('place', ref)
|
|
|
|
return this._link_relation('place', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unlink_place(ref) {
|
|
|
|
unlink_place(ref) {
|
|
|
|
return this._unlink_property('place', ref)
|
|
|
|
return this._unlink_relation('place', ref)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|