Skip to content

release register - unexpected entity #159

@marqh

Description

@marqh

Hello Registry folks

I've got a slightly unexpected behaviour from the registry-core that i'd like to explore with you if I may?

i am trying to create a companion register to another internal register within a registry
the aim of the companion is to release control a subset of a register

register-main contains all of the registered entites, with defining URIs

register-release-1 contains registerItems for a subset of the entites registered, which were included within release-1

to enable this, content payloads of the form:

@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix reg: <http://purl.org/linked-data/registry#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .

</gr/gr2/m--4/4.2/2-0-192> a skos:Concept ;
	rdfs:label "primary deciduous trees"@en ;
.
<> a reg:RegisterItem ;
	reg:notation "2-0-192" ;
	reg:definition [ reg:entity </gr/gr2/m--4/4.2/2-0-192> ] ;
	.

are created, and then uploaded as POSTs to /gr/gr2/m--4/release-1/4.2/

this works neatly, as each registeItem is then defined as the entity in the main register, and 'download' dowloads all of the release-included entities from the main register. The URIs are always main reg URIs and no release-1 is included in entity URIs

this all seems pretty neat, useful and manageable
(all feedback on design intent welcome)

However, there's a behaviour that trips up content testing in its current form, which i'd be interested in some validation / feedback on

in POSTing the presented content to the registry, the RegisterItem /gr/gr2/m--4/release-1/4.2/_2-0-192 is created as expected

However, an entity also appears: /gr/gr2/m--4/release-1/4.2/2-0-192

the intent was that this URI would not exist, and return 404
we do not want these URI patterns with the release-1/ fragment inside them used to reference entities

we can't work out how this entity has appeared, it's not easy to find as the containing register and the registerItems link to the main register entities

we'd be really interested in any advice or insight into how we could deliver our aim of tagged release registers referencing a continuously updating main register and how we could upload relevant payloads without accidentally enabling hidden entity creation, which is then a problem for testing and for usage guidance

many thanks
mark

(@der @simonoakesepimorphics)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions