core:NamespaceMap leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Core/NamespaceMap

Label

NamespaceMap

Description

A mapping between prefixes and namespace partial URIs.

Targets (1)

Node Constraints

value type sh:BlankNodeOrIRI

Property Constraints (2)

Focus nodes of this shape (core:NamespaceMap) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:namespace Provides an unambiguous mechanism for conveying a URI fragment portion of an Element ID. 1 1 xsd:anyURI
sh:Literal
core:prefix A substitute for a URI. 1 1 xsd:string
sh:Literal

Implementation

@prefix core: <https://spdx.org/rdf/3.0.1/terms/Core/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

core:NamespaceMap a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A mapping between prefixes and namespace partial URIs."@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:prefix ],
        [ sh:datatype xsd:anyURI ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:namespace ] .