Skip to main content

Classifications and Creation Profiles

Version: V2
View Markdown

A classification describes a kind of entity in Intuition. It gives that kind a stable slug, a type and a set of fields, and can declare an identity ladder. A Creation Profile brings together the fields an app should show and the relationships it can suggest when someone enters an entity of that kind.

Builds on: Atoms, The Intuition Identifier, The identity ladder.

Implemented by: classifications.

How it works​

Start with what a row represents. A track can be modeled as a music-recording, whose schema.org type is MusicRecording. Its identity ladder looks for an ISRC, then a MusicBrainz recording reference, then a name. The form can collect more facts than the ladder needs. Music recording classification

The generated Creation Profile carries a label, type and required flag for each field. Its relationship suggestions identify a predicate and the expected object types. For example, byArtist accepts a music-group or a person. Typing an artist name records text. Making a graph claim takes a recording ID, a predicate ID and an artist ID. Music recording Creation Profile

Example​

For a recording called “Night train”, the profile exposes five fields in this order.

Field keyWhat the form collectsRequired
nameThe track title, such as “Night train”Yes
byArtistAn artist creditNo
inAlbumAn album titleNo
isrcA recording code when knownNo
sameAsA list of URLs identifying this recordingNo

With just the title, the name field satisfies the form’s required-field rule. The identity ladder can still yield a weak name-derived IID. If an artist is known only by a shared display name, keep the credit as text until you can identify the intended object. Creation Profile field and target tests

Common mistakes​

  • Treating every available schema.org property as a required form field. Use the profile’s field list and its required flags.
  • Inferring an edge from a suggested relationship or from a sameAs URL in form state. Those values can guide a later claim.
  • Confusing a Creation Profile, which describes input, with a representation profile, which describes stored bytes.

Next​

Applies to V2 · @0xintuition/classifications 0.1.1