Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 164 additions & 0 deletions context/modules/v1.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"@context": [
{
"dts": "https://dtsapi.org/v1.0#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"@protected": true,
"default": "@none",
"CitableUnit": {
"@id": "dts:CitableUnit",
"@protected": false
},
"CitationTree": {
"@id": "dts:CitationTree",
"@protected": true
},
"CiteStructure": {
"@id": "dts:CiteStructure",
"@protected": true
},
"Collection": {
"@id": "dts:Collection",
"@protected": false
},
"EntryPoint": {
"@id": "dts:EntryPoint",
"@protected": true
},
"Navigation": {
"@id": "dts:Navigation",
"@protected": true
},
"Pagination": {
"@id": "dts:Pagination",
"@protected": true
},
"Resource": {
"@id": "dts:Resource",
"@protected": false
},
"citationTrees": {
"@id": "dts:citationTrees",
"@container": "@set",
"@protected": true
},
"citeStructure": {
"@id": "dts:citeStructure",
"@container": "@set",
"@protected": true
},
"desc": {
"@id": "dts:description",
"@protected": false,
"@container": "@language"
},
"end": {
"@id": "dts:end",
"@protected": true
},
"extensions": {
"@id": "@nest",
"@protected": false
},
"first": {
"@id": "dts:first",
"@protected": true
},
"last": {
"@id": "dts:last",
"@protected": true
},
"member": {
"@id": "dts:member",
"@container": "@set",
"@protected": false
},
"next": {
"@id": "dts:next",
"@protected": true
},
"previous": {
"@id": "dts:previous",
"@protected": true
},
"ref": {
"@id": "dts:ref",
"@protected": true
},
"resource": {
"@id": "dts:resource",
"@protected": false,
"@type": "@id"
},
"start": {
"@id": "dts:start",
"@protected": true
},
"label": {
"@id": "rdfs:label",
"@protected": false,
"@container": "@language"
},
"view": {
"@id": "dts:view",
"@protected": false
},
"citeType": {
"@id": "dts:citeType",
"@protected": true
},
"collection": {
"@id": "dts:collection",
"@protected": false
},
"document": {
"@id": "dts:document",
"@protected": false
},
"download": {
"@id": "dts:download",
"@protected": false
},
"dtsVersion": {
"@id": "dts:dtsVersion",
"@protected": true
},
"identifier": {
"@id": "dts:identifier",
"@protected": false
},
"level": {
"@id": "dts:level",
"@type": "xsd:integer",
"@protected": true
},
"mediaTypes": {
"@id": "dts:mediaTypes",
"@protected": true,
"@container": "@set"
},
"navigation": {
"@id": "dts:navigation",
"@protected": false
},
"parent": {
"@id": "dts:parent",
"@protected": true
},
"title": {
"@id": "dts:title"
},
"totalChildren": {
"@id": "dts:totalChildren",
"@type": "xsd:integer",
"@protected": true
},
"totalParents": {
"@id": "dts:totalParents",
"@type": "xsd:integer",
"@protected": true
}
}
]
}
69 changes: 69 additions & 0 deletions context/v1.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"@context": {
"dts": "https://dtsapi.org/v1.0#",
"dct": "http://purl.org/dc/terms/",

"CitableUnit": "dts:CitableUnit",
"CitationTree": "dts:CitationTree",
"CiteStructure": "dts:CiteStructure",
"Collection": "dts:Collection",
"EntryPoint": "dts:EntryPoint",
"MetadataObject": "dts:MetadataObject",
"Navigation": "dts:Navigation",
"Pagination": "dts:Pagination",
"Resource": "dts:Resource",

"citationTrees": "dts:citationTrees",
"citeStructure":"dts:citeStructure",
"description": "dts:description",

"lang": "@language",
"value": "@value",
"dublinCore": {
"@id": "@nest",
"@context": {
"@vocab": "http://purl.org/dc/terms/",
"description": {
"@id": "dct:description"
},
"identifier": {
"@id": "dct:identifier"
},
"title": {
"@id": "dct:title"
}
}
},
"end": "dts:end",
"extensions": {
"@id": "@nest",
"@context": {
"@vocab": null
}
},
"first": "dts:first",
"last": "dts:last",
"member": "dts:member",
"next": "dts:next",
"previous": "dts:previous",
"ref": "dts:ref",
"resource": "dts:resource",
"start": "dts:start",
"title": "dts:title",
"view": "dts:view",

"citeType": "dts:citeType",
"collection": "dts:collection",
"document": "dts:document",
"download": "dts:download",
"dtsVersion": "dts:dtsVersion",
"identifier": "dts:identifier",
"level": "dts:level",
"mediaTypes": "dts:mediaTypes",
"navigation": "dts:navigation",
"parent": "dts:parent",
"totalChildren": "dts:totalChildren",
"totalParents": "dts:totalParents"

}
}
2 changes: 1 addition & 1 deletion context/1.0rcx.json → context/v1.0rcx.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": {
"dts": "https://w3id.org/dts/api#",
"dts": "https://dtsapi.org/v1.0rcx#",
"dct": "http://purl.org/dc/terms/",

"CitableUnit": "dts:CitableUnit",
Expand Down
2 changes: 1 addition & 1 deletion context/1.0test.json → context/v1.0test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": {
"dts": "https://w3id.org/dts/api#",
"dts": "https://dtsapi.org/v1.0test#",
"dct": "http://purl.org/dc/terms/",

"CitableUnit": "dts:CitableUnit",
Expand Down
8 changes: 4 additions & 4 deletions distribution/seed/collection.seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"context": {
"document": {
"@context": [
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/dct-nest.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/1.0rc1.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/v1.0.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/dct-obj.json",
{
"extensions": "@nest",
"requested": {
Expand Down Expand Up @@ -89,8 +89,8 @@
"context": {
"document": {
"@context": [
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/dct-nest.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/1.0rc1.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/v1.0.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/dct-obj.json",
{
"extensions": "@nest",
"requested": {
Expand Down
27 changes: 26 additions & 1 deletion distribution/seed/context-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,32 @@
},


"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/v1.0.json": {
"path": "context/modules/v1.0.json"
},
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/heads/main/context/modules/v1.0.json": {
"path": "context/modules/v1.0.json"
},
"https://scdh.github.io/dts-transformations/latest/context/modules/v1.0.json": {
"path": "context/modules/v1.0.json"
},


"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/v1.0.json": {
"path": "context/v1.0.json"
},
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/heads/main/context/v1.0.json": {
"path": "context/v1.0.json"
},
"https://scdh.github.io/dts-transformations/latest/context/v1.0.json": {
"path": "context/v1.0.json"
},

"https://dtsapi.org/specifications/context/v1.0.json": {
"path": "context/v1.0.json"
},


"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/tags/${revision}${changelist}/context/modules/1.0rc1.json": {
"path": "context/modules/1.0rc1.json"
},
Expand All @@ -42,7 +68,6 @@
"path": "context/1.0rc1.json"
},


"https://dtsapi.org/specifications/context/1.0rc1.json": {
"path": "context/1.0rc1.json"
}
Expand Down
2 changes: 1 addition & 1 deletion sparql/children.rq
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# USAGE: see test/collection/README.md


PREFIX dts: <https://w3id.org/dts/api#>
PREFIX dts: <https://dtsapi.org/v1.0#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX seed: <https://raw.githubusercontent.com/SCDH/seed-xc/refs/heads/main/dts/src/main/resources/META-INF/resources/semantics/>
Expand Down
2 changes: 1 addition & 1 deletion sparql/frame.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": [
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/heads/main/context/modules/dct-nest.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/heads/main/context/modules/1.0rc1.json",
"https://raw.githubusercontent.com/SCDH/dts-transformations/refs/heads/main/context/modules/v1.0.json",
{
"extensions": "@nest",
"requested": { "@id": "dts:requested", "@nest": "extensions", "@type": "http://www.w3.org/2001/XMLSchema#boolean" }
Expand Down
2 changes: 1 addition & 1 deletion sparql/parents.rq
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# USAGE: see test/collection/README.md


PREFIX dts: <https://w3id.org/dts/api#>
PREFIX dts: <https://dtsapi.org/v1.0#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX seed: <https://raw.githubusercontent.com/SCDH/seed-xc/refs/heads/main/dts/src/main/resources/META-INF/resources/semantics/>
Expand Down
2 changes: 1 addition & 1 deletion sparql/wadm-with-ref.rq
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# ?PARAMREF - the identifier member passed to the document enpoint as ref parameter
# ?PARAMURI - the document query URL

PREFIX dts: <https://w3id.org/dts/api#>
PREFIX dts: <https://dtsapi.org/v1.0#>
PREFIX oa: <http://www.w3.org/ns/oa#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Expand Down
10 changes: 5 additions & 5 deletions test/john.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<refsDecl n="wadm" default="false">
<!-- see comments in WIKI article about alignment with WADM -->
<citeStructure unit="book" match="//body/lg" use="@n">
<citeData use="path(.)" property="https://w3id.org/dts/api#xpath"/>
<citeData use="path(.)" property="https://dtsapi.org/v1.0#xpath"/>
<citeStructure unit="chapter" match="lg" use="@n" delim=":">
<citeData use="path(.)" property="https://w3id.org/dts/api#xpath"/>
<citeData use="path(.)" property="https://dtsapi.org/v1.0#xpath"/>
<citeStructure unit="verse" match="l" use="@n" delim=":">
<citeData use="path(.)" property="https://w3id.org/dts/api#xpath"/>
<citeData use="path(.)" property="https://dtsapi.org/v1.0#xpath"/>
</citeStructure>
</citeStructure>
</citeStructure>
Expand Down Expand Up @@ -66,8 +66,8 @@
</refsDecl>
<refsDecl n="page-hateoas">
<citeStructure unit="page" match="//body//pb" use="@n" delim="p.">
<citeData use="'p.' || @n || '.start'" property="https://w3id.org/dts/api#startMember"/>
<citeData use="'p.' || @n || '.end'" property="https://w3id.org/dts/api#endMember"/>
<citeData use="'p.' || @n || '.start'" property="https://dtsapi.org/v1.0#startMember"/>
<citeData use="'p.' || @n || '.end'" property="https://dtsapi.org/v1.0#endMember"/>
<citeStructure unit="page-start" match="self::pb"
use="''" delim=".start"/>
<citeStructure unit="page-end" match="(self::pb/following::pb[1]/preceding::node()[1], (//text//text())[last()])[1]"
Expand Down
1 change: 1 addition & 0 deletions xsl/document.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ no matter what the $mediaType parameter is set to.
</xsl:when>
<xsl:when test="exists($ref)">
<TEI>
<!-- DTS 1.0 still keeps the old w3id.org namespace for the wrapper! -->
<dts:wrapper xmlns:dts="https://w3id.org/api/dts#">
<xsl:sequence xmlns:dts="https://distributed-text-services.github.io/specifications/"
select="dts:cut-ref(.)"/>
Expand Down
Loading
Loading