Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 2.08 KB

TimeSpan.md

File metadata and controls

40 lines (34 loc) · 2.08 KB

Test cases for edm:TimeSpan class

This document was generated from the testcases available within this [directory] (/shapes-edm/src/test/resources/etc/edm/tests/data) using this software

This document contains test cases that target constraints that are specific to resources of type edm:TimeSpan and which are defined within this shape definition. The validation results were generated using TopBraid SHACL validator. The following table shows the testcases that were run:

Test Case Results Status
ok.xml 0

Test Case: ok.xml


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
         xmlns:dcterms="http://purl.org/dc/terms/"
         xmlns:edm="http://www.europeana.eu/schemas/edm/"
         xmlns:owl="http://www.w3.org/2002/07/owl#"
         >
    <edm:TimeSpan rdf:about="http://semium.org/time/19xx_2_third">
        <skos:prefLabel xml:lang="en">Mid 20th century</skos:prefLabel>
        <skos:prefLabel xml:lang="fr">Milieu du 20e siècle</skos:prefLabel>
        <skos:prefLabel xml:lang="de">Mitte des 20. Jahrhunderts</skos:prefLabel>
        <skos:prefLabel xml:lang="it">Metà del 20° secolo</skos:prefLabel>
        <skos:altLabel xml:lang="en">Middle of the 20th Century</skos:altLabel>
        <edm:begin>1934-01-01</edm:begin>
        <edm:end>1966-12-31</edm:end>
        <dcterms:hasPart rdf:resource="http://semium.org/time/1939"/>
        <dcterms:isPartOf rdf:resource="http://semium.org/time/19xx"/>
        <edm:isNextInSequence rdf:resource="http://semium.org/time/19xx_3_third"/>
    </edm:TimeSpan>
</rdf:RDF>

 Below is the output generated by TopBraid SHACL validator in Turtle syntax:

@prefix sh:    <http://www.w3.org/ns/shacl#> .