An attribute represents a small piece of information such as a Semantic triple.
Set a possible id to represent the attribute
setId (Just "id:1234") modelSet the key of the attribute
setKey "ui:label" modelSet a list of string values
setValues ["some label"] modelSet an optional list of tags to mark the data
setFacets ["min", "inclusive"] modelFind an attribute by key
findAttributeByKey "ui:label" models -- Just labelFind an attribute by key and then get the first value if any
findAttributeFirstValueByKey "ui:label" models -- Just "some label"Replace or create an attribute by key
replaceAttributeByKey "ui:label" ["new label"] models -- modelsDelete an attribute by key
deleteAttributeByKey "ui:label" models -- []Find an outcome searching by key
findOutcomeByKey "ui:label" models -- Valid ["some label"]Find an outcome searching by a couple of keys
findOutcomeByKeyTuple ("ui:min", "ui:max") models -- Valid (["1"], ["10"])
The core representation of an attribute with:
When representing a RDF triple: