You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are four ways to get JSON-LD data into arches:
the POST api
the PUT api
the load_jsonld management command
the json-ld bulk import module, which is a wrapper around no. 3
All four allow you to pass a graph by slug. In dev/8.0.x we currently assume the user means the original graph. But if your tile data has already migrated away to some future graph version, that assumption would leave you working against an outdated version.
Should we assume when these four places are given a graph slug, that the caller wants to work against the latest graph?
I misunderstood the number of graph rows sharing a slug: should only ever be 2 no matter how many versions there are. The versioning happens in json. A UniqueConstraint across slug and source_identifier=None could potentially clarify this or improve performance slightly.
jacobtylerwalls
changed the title
Should resource API & JSON-LD import module assume latest graph when importing?
Add UniqueConstraint for Graph.alias where Graph.source_identifier = None
Nov 11, 2024
jacobtylerwalls
changed the title
Add UniqueConstraint for Graph.alias where Graph.source_identifier = None
Add UniqueConstraint for Graph.slug where Graph.source_identifier = None
Nov 11, 2024
There are four ways to get JSON-LD data into arches:
load_jsonld
management commandAll four allow you to pass a graph by slug. In dev/8.0.x we currently assume the user means the original graph. But if your tile data has already migrated away to some future graph version, that assumption would leave you working against an outdated version.
Should we assume when these four places are given a graph slug, that the caller wants to work against the latest graph?
cc/ @robgaston
Noticed while dev'ing archesproject/arches-lingo#103, which might create a fifth place to look up graphs by slug.
The text was updated successfully, but these errors were encountered: