Skip to content

Data types in the vocabulary #96

@marcverhagen

Description

@marcverhagen

The 1.3.0 snapshot has a new data type name Datatype#list_uri, see the Token type for an example. Until now, the type listed for the values of properties were things like String, Integer, String or URI, List of URI, List of IDs,Set of IDs, List of Strings, and maybe a few I missed. The new Datatype#list_uri is a datatype defined in the vocabulary and is associated with a URI which is printed here since the link is broken (this is somewhat simplified):

<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    attributeFormDefault="unqualified"
    elementFormDefault="qualified">
    <xs:simpleType name="list_uri" id="list_uri">
        <xs:restriction>
            <xs:simpleType>
                <xs:list itemType="xs:anyURI"/>
            </xs:simpleType>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="string_list" id="string_list">
        <xs:restriction>
            <xs:simpleType>
                <xs:list itemType="xs:string"/>
            </xs:simpleType>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>

The reason appears to be that this is needed for generating RDF schema. Some general remarks and questions on this for discussion:

  • Do we really want to use Datatype#list_uri instead of List of URI (which may be should be List of URIs so it is consistent with List of IDs. I do not find it very user-friendly.
  • If we do use something like http://vocab.lappsgrid.org/Datatype#list_uri we could still call it List of URIs but use the link as well. This way we have the explicit definition but it the vocabulary will still show a more friendly name.
  • If we have one for http://vocab.lappsgrid.org/Datatype#list_uri don't we then also need URIs for all others (http://vocab.lappsgrid.org/Datatype#string etcetera)?
  • With or without those datatypes, it would perhaps be nice to associate some explicit meaning to the types, perhaps a list defined somewhere.

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