Feature #2491
Updated by Bernhard Koschiček-Krombholz 10 months ago
When calling the /linked_entities_by_properties_recursive/ endpoint with the property P134 ("continues"), the order of returned movements does not reflect the order of preceding and succeeding events as entered in the database. E.g., when connecting five move events ("My first move"... "My fifth move"), we get the following unordered API result:
<pre><code class="javascript">
{
"results": [
{
"@context": "https://raw.githubusercontent.com/LinkedPasts/linked-places/master/linkedplaces-context-v1.1.jsonld",
"type": "FeatureCollection",
"features": [
{
"@id": "https://demo-dev.openatlas.eu/api/entity/221483",
"type": "Feature",
"crmClass": "crm:E9 Move",
"systemClass": "move",
"viewClass": "event",
"properties": {
"title": "My fifth move"
},
"descriptions": null,
"relations": [
{
"label": "Location of Oberleiserberg",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50630",
"relationType": "crm:P27 moved from",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
},
{
"label": "Location of Thunau Obere Holzwiese",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50510",
"relationType": "crm:P26 moved to",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
}
],
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [
16.372155706,
48.559224229
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50630
},
{
"type": "Point",
"coordinates": [
15.643271526,
48.586736121
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50510
}
]
}
}
]
},
{
"@context": "https://raw.githubusercontent.com/LinkedPasts/linked-places/master/linkedplaces-context-v1.1.jsonld",
"type": "FeatureCollection",
"features": [
{
"@id": "https://demo-dev.openatlas.eu/api/entity/221479",
"type": "Feature",
"crmClass": "crm:E9 Move",
"systemClass": "move",
"viewClass": "event",
"properties": {
"title": "My first move"
},
"descriptions": null,
"relations": [
{
"label": "Location of Oberleiserberg",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50630",
"relationType": "crm:P27 moved from",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
},
{
"label": "Location of Zwentendorf",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/128118",
"relationType": "crm:P26 moved to",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
}
],
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [
16.372155706,
48.559224229
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50630
},
{
"type": "Point",
"coordinates": [
15.890530338,
48.34636865
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 128118
}
]
}
}
]
},
{
"@context": "https://raw.githubusercontent.com/LinkedPasts/linked-places/master/linkedplaces-context-v1.1.jsonld",
"type": "FeatureCollection",
"features": [
{
"@id": "https://demo-dev.openatlas.eu/api/entity/221482",
"type": "Feature",
"crmClass": "crm:E9 Move",
"systemClass": "move",
"viewClass": "event",
"properties": {
"title": "My fourth move"
},
"descriptions": null,
"relations": [
{
"label": "Location of Oberleiserberg",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50630",
"relationType": "crm:P26 moved to",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
},
{
"label": "Location of Thunau Obere Holzwiese",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50510",
"relationType": "crm:P27 moved from",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
}
],
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [
16.372155706,
48.559224229
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50630
},
{
"type": "Point",
"coordinates": [
15.643271526,
48.586736121
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50510
}
]
}
}
]
},
{
"@context": "https://raw.githubusercontent.com/LinkedPasts/linked-places/master/linkedplaces-context-v1.1.jsonld",
"type": "FeatureCollection",
"features": [
{
"@id": "https://demo-dev.openatlas.eu/api/entity/221480",
"type": "Feature",
"crmClass": "crm:E9 Move",
"systemClass": "move",
"viewClass": "event",
"properties": {
"title": "My second move"
},
"descriptions": null,
"relations": [
{
"label": "Location of Teurnia St. Peter in Holz",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50670",
"relationType": "crm:P26 moved to",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
},
{
"label": "Location of Zwentendorf",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/128118",
"relationType": "crm:P27 moved from",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
}
],
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [
13.45207825,
46.818854118
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50670
},
{
"type": "Point",
"coordinates": [
15.890530338,
48.34636865
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 128118
}
]
}
}
]
},
{
"@context": "https://raw.githubusercontent.com/LinkedPasts/linked-places/master/linkedplaces-context-v1.1.jsonld",
"type": "FeatureCollection",
"features": [
{
"@id": "https://demo-dev.openatlas.eu/api/entity/221481",
"type": "Feature",
"crmClass": "crm:E9 Move",
"systemClass": "move",
"viewClass": "event",
"properties": {
"title": "My third move"
},
"descriptions": null,
"relations": [
{
"label": "Location of Teurnia St. Peter in Holz",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50670",
"relationType": "crm:P27 moved from",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
},
{
"label": "Location of Thunau Obere Holzwiese",
"relationTo": "https://demo-dev.openatlas.eu/api/entity/50510",
"relationType": "crm:P26 moved to",
"relationSystemClass": "object_location",
"relationDescription": null,
"type": null,
"when": {
"timespans": [
{
"start": {
"earliest": null,
"latest": null,
"comment": null
},
"end": {
"earliest": null,
"latest": null,
"comment": null
}
}
]
}
}
],
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [
13.45207825,
46.818854118
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50670
},
{
"type": "Point",
"coordinates": [
15.643271526,
48.586736121
],
"title": "",
"description": "",
"shapeType": "centerpoint",
"locationId": 50510
}
]
}
}
]
}
],
"pagination": {
"entities": 5,
"entitiesPerPage": 20,
"index": [
{
"page": 1,
"startId": 221483
}
],
"totalPages": 1
}
}
</code></pre>