Skip to content

Define URIs for versions #50

Open
Open
@afs

Description

@afs

From the discussion w3c/sparql-query#242 (comment)

The request is to have URIs for the versions defined by the RDF & SPARQL Working group.

The proposal is to put a controlled vocabulary of for versions into the RDF namespace document, and then link to these constants from, e.g. the SPARQL Service Description document definition of sd:SPARQL12Query.

Possible addition to http://www.w3.org/1999/02/22-rdf-syntax-ns#

rdf:version-1.2 a rdfs:Resource ;
    rdfs:label "1.2" ;
    rdfs:comment "Version 1.2" ;
    rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ;
    .

rdf:version-1.2-basic
    rdfs:label "1.2-basic" ;
    rdfs:comment "Version 1.2-basic" ;
    rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ;
    .

rdf:version-1.1
    rdfs:label "1.1" ;
    rdfs:comment "Version 1.1" ;
    rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ;
    .

This is not to replace the use of strings in RDF and SPARQL syntaxes. As previously discussed, alignment with being used for HTTP header parameters for media types (version=), the visual convenience of strings, and being able to simply text search for VERSION without parsing were factors. e.g. VERSION on the first line would need a full URI, or if later in the file, prefix management would be need to be applied.

rdfs:label is defined as "A human-readable name for the subject."

It may be useful to add:

rdf:version-1.0
    rdfs:label "1.0" ;
    rdfs:comment "Version 1.0" ;
    rdfs:isDefinedBy <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ;
    .

for completeness.

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