Skip to content

Commit

Permalink
Add TDE files for stats extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonj04 committed Oct 23, 2023
1 parent 95e45e7 commit 3960565
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/main/ml-schemas/sql-document-extract.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<template xmlns="http://marklogic.com/xdmp/tde">
<context>//akn:FRBRWork</context>
<collections>
<collection>press-summary</collection>
<collection>judgment</collection>
</collections>
<path-namespaces>
<path-namespace>
<prefix>akn</prefix>
<namespace-uri>http://docs.oasis-open.org/legaldocml/ns/akn/3.0</namespace-uri>
</path-namespace>
<path-namespace>
<prefix>uk</prefix>
<namespace-uri>https://caselaw.nationalarchives.gov.uk/akn</namespace-uri>
</path-namespace>
<path-namespace>
<prefix>prop</prefix>
<namespace-uri>http://marklogic.com/xdmp/property</namespace-uri>
</path-namespace>
</path-namespaces>
<rows>
<row>
<schema-name>documents</schema-name>
<view-name>summary</view-name>
<columns>
<column>
<name>uri</name>
<scalar-type>string</scalar-type>
<val>xdmp:node-uri(.)</val>
<reindexing>visible</reindexing>
</column>
<column>
<name>ncn</name>
<scalar-type>string</scalar-type>
<val>sem:iri(//uk:cite//text())</val>
<nullable>true</nullable>
<invalid-values>ignore</invalid-values>
<reindexing>visible</reindexing>
</column>
<column>
<name>name</name>
<scalar-type>string</scalar-type>
<val>sem:iri(//akn:FRBRWork/akn:FRBRname/@value)</val>
<reindexing>visible</reindexing>
</column>
</columns>
</row>
</rows>
</template>
59 changes: 59 additions & 0 deletions src/main/ml-schemas/sql-document-properties-extract.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<template xmlns="http://marklogic.com/xdmp/tde">
<path-namespaces>
<path-namespace>
<prefix>prop</prefix>
<namespace-uri>http://marklogic.com/xdmp/property</namespace-uri>
</path-namespace>
<path-namespace>
<prefix>dls</prefix>
<namespace-uri>http://marklogic.com/xdmp/dls</namespace-uri>
</path-namespace>
</path-namespaces>
<context>prop:properties</context>
<rows>
<row>
<schema-name>documents</schema-name>
<view-name>propertysummary</view-name>
<columns>
<column>
<name>uri</name>
<scalar-type>string</scalar-type>
<val>xdmp:node-uri(.)</val>
<reindexing>visible</reindexing>
</column>
<column>
<name>doc_uri</name>
<scalar-type>string</scalar-type>
<val>dls:version/dls:document-uri</val>
<nullable>true</nullable>
<invalid-values>ignore</invalid-values>
<reindexing>visible</reindexing>
</column>
<column>
<name>version_number</name>
<scalar-type>integer</scalar-type>
<val>dls:version/dls:version-id</val>
<nullable>true</nullable>
<invalid-values>ignore</invalid-values>
<reindexing>visible</reindexing>
</column>
<column>
<name>modified</name>
<scalar-type>dateTime</scalar-type>
<val>prop:last-modified</val>
<nullable>true</nullable>
<invalid-values>ignore</invalid-values>
<reindexing>visible</reindexing>
</column>
<column>
<name>published</name>
<scalar-type>string</scalar-type>
<val>published</val>
<nullable>true</nullable>
<invalid-values>ignore</invalid-values>
<reindexing>visible</reindexing>
</column>
</columns>
</row>
</rows>
</template>

0 comments on commit 3960565

Please sign in to comment.