Steps for standalone data operations and conversion to other formats.
Kroky pro samostatné operace s daty a jejich převod do jiných formátů.
Steps for standalone data operations and conversion to other formats.
Kroky pro samostatné operace s daty a jejich převod do jiných formátů.
Converts CoNLLLu data generated by UDPipe to TEI P5.
Převede data ve formátu CoNLLLu, který generuje UDPipe, do formátu TEI P5.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Converts CoNLLLu data generated by UDPipe to TEI P5.
Převede data ve formátu CoNLLLu, který generuje UDPipe, do formátu TEI P5.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | udpipe-text | ||
select | . | |||
4 | p:xslt | |||
parameters | map{'input': $udpipe-text} | |||
href | ../xslt/conversion/conllu-to-xml.xsl | |||
5 | p:xslt | |||
href | ../xslt/conversion/conllu-xml-to-hierarchy.xsl | |||
6 | p:xslt | |||
href | ../xslt/conversion/conllu-xml-hierarchy-to-tei.xsl |
Converts XML data generated by NameTag to TEI P5.
Převede data ve formátu XML, který generuje NameTag, do formátu TEI P5.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Converts XML data generated by NameTag to TEI P5.
Převede data ve formátu XML, který generuje NameTag, do formátu TEI P5.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | udpipe-text | ||
select | . | |||
4 | p:xslt | |||
href | ../xslt/namegtag/nametag-xml-to-tei.xsl |
Prepares script for conversion images from one virtual document in DjVu format to PDF or TIFF.
Připraví skript pro konverzi obrázků z jednoho virtuálního dokumentu ve formátu DjVu do PDF nebo TIFF.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
main-input-directory | name = main-input-directory | as = xs:anyURI | required = true |
main-output-directory | name = main-output-directory | as = xs:anyURI | required = true |
output-file | name = output-file | as = xs:string | required = true |
format | name = format | values = ('pdf', 'tiff') | select = 'pdf' |
pdfbox-path | name = pdfbox-path | as = xs:string | required = true |
ddjvu-path | name = ddjvu-path | as = xs:string | required = true |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Prepares script for conversion images from one virtual document in DjVu format to PDF or TIFF.
Připraví skript pro konverzi obrázků z jednoho virtuálního dokumentu ve formátu DjVu do PDF nebo TIFF.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:viewport | |||
lac:convert-djvu-item | ||||
match | lad:document | |||
p:variable |
Prepares script for conversion idividual images from folder in DjVu format to PDF or TIFF.
Připraví skript pro konverzi jednotlivých obrázků ve složce ve formátu DjVu do PDF nebo TIFF.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
input-directory | name = input-directory | as = xs:anyURI | required = true |
output-directory | name = output-directory | as = xs:anyURI | required = true |
output-file | name = output-file | as = xs:anyURI | required = true |
format | name = format | values = ('pdf', 'tiff') | select = 'pdf' |
pdfbox-path | name = pdfbox-path | as = xs:string | required = true |
ddjvu-path | name = ddjvu-path | as = xs:string | required = true |
direction | value | primary |
---|---|---|
input | source | false |
output | result | true |
Prepares script for conversion idividual images from folder in DjVu format to PDF or TIFF.
Připraví skript pro konverzi jednotlivých obrázků ve složce ve formátu DjVu do PDF nebo TIFF.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:directory-list | |||
path | {$input-directory} | |||
4 | p:for-each | |||
select | //c:file | |||
5 | p:text-join | djvu-conversion | ||
separator |
| | 6 | p:identity | | | | | 7 | lac:fix-path | pdf-merge | | | | | | | base-uri | {$base-uri} | | | | | debug-path | {$debug-path} | | 8 | p:text-join | | | | | | | | separator | | | | | | pipe | @djvu-conversion @pdf-merge | | 9 | p:store | | | | | | | | href | {$output-file} | | 10 | p:file-mkdir | | | | | | | | href | {$output-directory} |
Fixes file path URI to path with backslashes if operating system is Windows.
Opraví cestu k souboru na cestu se zpětnými lomítky, pokud je operační systém Windows.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | false |
output | result | true |
Fixes file path URI to path with backslashes if operating system is Windows.
Opraví cestu k souboru na cestu se zpětnými lomítky, pokud je operační systém Windows.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:file-info | |||
fail-on-error | false | |||
href | file:///C:/Windows | |||
4 | p:if | |||
p:text-replace |
|
| | | | p:text-replace | | | | | | test | exists(/c:directory[@name='Windows']) |
The main programming library for enrichment data by external (web) services.
Hlavní programová knihovna pro obohacení dat pomocí externích (webových) služeb.
The main programming library for enrichment data by external (web) services.
Hlavní programová knihovna pro obohacení dat pomocí externích (webových) služeb.
Enriches available (textual) data by selected fetures.
Obohatí dostupná (textová) data o vybrané vlastnosti.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
pause-before-request | name = pause-before-request | select = 2 | as = xs:integer |
output-format | name = output-format | values = ('TEXT', 'TEI') | as = xs:string* |
enrichment | name = enrichment | values = ('ENTITIES', 'MORPHOLOGY') | as = xs:string* |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Enriches available (textual) data by selected fetures.
Obohatí dostupná (textová) data o vybrané vlastnosti.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:if | |||
lae:enrich-by-entities |
|
| | | | test | $enrichment = 'ENTITIES' | | 2 | p:if | | | | | | | | lae:enrich-by-morphology |
|
| | | | test | $enrichment = 'MORPHOLOGY' | | 3 | p:if | | | | | | | | lae:convert-to-tei |
|
| | | | test | $output-format = 'TEI' | | 4 | p:if | | | | | | | | lae:combine-text-pages |
|
| | | | test | $output-format = 'TEXT' |
Enriches available (textual) data by named entities.
Obohatí dostupná (textová) data o pojmenované entity.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Enriches available (textual) data by named entities.
Obohatí dostupná (textová) data o pojmenované entity.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:insert | report-start | ||
position | last-child | |||
pipe | report-in@enriching-by-entities | |||
4 | p:viewport | |||
pipe | source@enriching-by-entities | |||
lant:get-nametag-analyses |
|
| | | | match | lad:document | | | | | p:variable | | | 5 | p:namespace-delete | | | | | | | | prefixes | lant xs xhtml | | 6 | p:identity | final | | | | 7 | p:add-attribute | report-final | | | | | | | attribute-name | end | | | | | attribute-value | {current-dateTime()} | | | | | match | lax:step[@type='lae:enrich-by-entities'][not(@end)] | | | | | pipe | result@report-start |
Enriches available (textual) data by morphological and syntactic analysis.
Obohatí dostupná (textová) data o morfologickou a syntaktickou analýzu.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Enriches available (textual) data by morphological and syntactic analysis.
Obohatí dostupná (textová) data o morfologickou a syntaktickou analýzu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:insert | report-start | ||
position | last-child | |||
pipe | report-in@enriching-by-morphology | |||
4 | p:viewport | |||
pipe | source@enriching-by-morphology | |||
laud:get-udpipe-analyses |
|
| | | | match | lad:document | | | | | p:variable | | | 5 | p:namespace-delete | | | | | | | | prefixes | laud xs xhtml | | 6 | p:identity | final | | | | 7 | p:add-attribute | report-final | | | | | | | attribute-name | end | | | | | attribute-value | {current-dateTime()} | | | | | match | lax:step[@type='lae:enrich-by-morphology'][not(@end)] | | | | | pipe | result@report-start |
Converts available (enriched textual) data to TEI P5 format.
Zkonvertuje dostupná (obohacená textová) data do formátu TEI P5.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Converts available (enriched textual) data to TEI P5 format.
Zkonvertuje dostupná (obohacená textová) data do formátu TEI P5.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:insert | report-start | ||
position | last-child | |||
pipe | report-in@converting-to-tei | |||
4 | p:viewport | |||
pipe | source@converting-to-tei | |||
lat:convert-to-tei |
|
| | | | match | lad:document | | | | | p:variable | | | 5 | p:namespace-delete | | | | | | | | prefixes | lat xs xhtml | | 6 | p:identity | final | | | | 7 | p:add-attribute | report-final | | | | | | | attribute-name | end | | | | | attribute-value | {current-dateTime()} | | | | | match | lax:step[@type='lae:enrich-by-entities'][not(@end)] | | | | | pipe | result@report-start |
Combines available pages to one document.
Sloučí text dostupných stránek do jednoho dokumentu.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Combines available pages to one document.
Sloučí text dostupných stránek do jednoho dokumentu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:insert | report-start | ||
position | last-child | |||
pipe | report-in@combining-text-pages | |||
4 | p:viewport | |||
pipe | source@combining-text-pages | |||
latx:combine-text-pages |
|
| | | | match | lad:document | | | | | p:variable | | | 5 | p:namespace-delete | | | | | | | | prefixes | lat xs xhtml | | 6 | p:identity | final | | | | 7 | p:add-attribute | report-final | | | | | | | attribute-name | end | | | | | attribute-value | {current-dateTime()} | | | | | match | lax:step[@type='lae:enrich-by-entities'][not(@end)] | | | | | pipe | result@report-start |
Programming library for communication with the system Kramerius, version 5.
Programová knihovna pro komunikaci se systémem Kramerius, verze 5.
name | properties |
---|
Programming library for communication with the system Kramerius, version 5.
Programová knihovna pro komunikaci se systémem Kramerius, verze 5.
Gathers all requested metadata about the publication. Creates the content of the virtual document with links to all requested resources.
Enhance input data by adding requested resources on the document and page level.
Shromáždí všechna požadovaná metadata o publikaci. Vytvoří strukturu virutálního dokumentu s odkazy na všechny požadované zdroje.
Obohatí vstupní data přidáním požadovaných zdrojů na úrovni dokumentu a strany.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Gathers all requested metadata about the publication. Creates the content of the virtual document with links to all requested resources.
Enhance input data by adding requested resources on the document and page level.
Shromáždí všechna požadovaná metadata o publikaci. Vytvoří strukturu virutálního dokumentu s odkazy na všechny požadované zdroje.
Obohatí vstupní data přidáním požadovaných zdrojů na úrovni dokumentu a strany.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | base-url | ||
select | /lad:document/lad:options/@base-url | |||
4 | p:variable | id | ||
select | /lad:document/@id | |||
5 | p:variable | guid | ||
select | substring-after(/lad:document/@id, ':') | |||
6 | p:variable | url | ||
select | concat($base-url, '/item/', $id, '/children') | |||
7 | p:insert | |||
match | /lad:document | |||
position | last-child | |||
8 | p:identity | document-with-resources | ||
9 | lax:get-virtual-document-pages | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
document-id | {$guid} | |||
url | {$url} | |||
10 | lax:get-available-formats | |||
base-uri | {$base-uri} | |||
base-url | {$base-url} | |||
debug-path | {$debug-path} | |||
11 | lax:get-source-url | |||
base-uri | {$base-uri} | |||
base-url | {$base-url} | |||
debug-path | {$debug-path} | |||
12 | p:identity | pages | ||
13 | p:if | |||
p:store | ||||
test | $debug | |||
14 | p:insert | |||
pipe | result@pages | |||
match | /lad:document | |||
position | last-child | |||
pipe | result@document-with-resources | |||
15 | p:viewport | |||
match | lad:page | |||
p:add-attribute | ||||
p:variable | ||||
p:viewport |
|
| 16 | p:if | | | | | | | | p:store | | | | | | test | $debug |
Gathers all requested data about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná data publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Gathers all requested data about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná data publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:insert | |||
position | last-child |
Creates element for each page of the document that contains basic data: identifier, type and (page) number.
Returns element lad:pages.
Pro každou stránku dokumentu vytvoří element se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:pages.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
url | name = url | as = xs:string |
document-id | name = document-id | as = xs:string |
direction | value | primary |
---|---|---|
output | result | true |
Creates element for each page of the document that contains basic data: identifier, type and (page) number.
Returns element lad:pages.
Pro každou stránku dokumentu vytvoří element se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:pages.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:http-request | |||
href | {$url} | |||
method | GET | |||
4 | p:if | |||
p:store | ||||
test | $debug | |||
5 | lax:pages-convert-json-to-xml | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} |
Converts from JSON to XML data about the document page. Creates element for the page with basic data: identifier, type and (page) number.
Returns lad:page element.
Zkonvertuje údje o stránce z JSONu do XML. Vytvoří element pro stránku dokumentu se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:page.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Converts from JSON to XML data about the document page. Creates element for the page with basic data: identifier, type and (page) number.
Returns lad:page element.
Zkonvertuje údje o stránce z JSONu do XML. Vytvoří element pro stránku dokumentu se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:page.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:for-each | |||
select | .?* | |||
4 | p:wrap-sequence | |||
wrapper | lad:pages |
For a resource associated with a page, builds a URL from the base URL, API version, document identifier, etc.
Creates @url attribute for the lad:page element.
Pro zdroj přiřazený ke stránce sestaví adresu URL ze základní adresy URL, verze rozhraní API, identifikátoru dokumentu apod.
Vytvoří atribut @url v rámci elementu lad:page.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
base-url | name = base-url | as = xs:anyURI |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
For a resource associated with a page, builds a URL from the base URL, API version, document identifier, etc.
Creates @url attribute for the lad:page element.
Pro zdroj přiřazený ke stránce sestaví adresu URL ze základní adresy URL, verze rozhraní API, identifikátoru dokumentu apod.
Vytvoří atribut @url v rámci elementu lad:page.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:viewport | |||
match | lad:page | |||
p:if |
|
| | | | p:if |
|
| | | | p:if |
|
| | | | p:if |
|
| | | | p:if |
|
| | | | p:if |
|
| 4 | p:viewport | | | | | | | | match | lad:page | | | | | p:variable | | | | | | p:viewport |
|
Selects one page from the middle of the document and checks which resources are available on-line.
For each requested adds @available attribute.
Pro stránku zprostředka publikace zjistí, které všechny zdroje jsou dostupné on-line.
Pro každý požadovaný zdroj vytvoří atribut @available v rámci elementu lad:resource.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
base-url | name = base-url | as = xs:anyURI |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Selects one page from the middle of the document and checks which resources are available on-line.
For each requested adds @available attribute.
Pro stránku zprostředka publikace zjistí, které všechny zdroje jsou dostupné on-line.
Pro každý požadovaný zdroj vytvoří atribut @available v rámci elementu lad:resource.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | size | ||
as | xs:integer | |||
select | count(/lad:pages/lad:page) | |||
2 | p:variable | page | ||
select | /lad:pages/lad:page[xs:integer($size div 2)] | |||
3 | p:variable | url | ||
select | concat($base-url, '/item/', $page/@id) | |||
4 | p:variable | alto-url | ||
select | concat($url, $url-fragments?alto) | |||
5 | p:variable | text-url | ||
select | concat($url, $url-fragments?text) | |||
6 | p:variable | dc-url | ||
select | concat($url, $url-fragments?dc) | |||
7 | p:variable | foxml-url | ||
select | concat($url, $url-fragments?foxml) | |||
8 | p:variable | mods-url | ||
select | concat($url, $url-fragments?mods) | |||
9 | p:variable | image-url | ||
select | concat($url, $url-fragments?image) | |||
10 | lax:get-available-format | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
format | alto | |||
select | $page | |||
url | {$alto-url} | |||
11 | lax:get-available-format | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
format | text | |||
url | {$text-url} | |||
12 | lax:get-available-format | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
format | dc | |||
url | {$dc-url} | |||
13 | lax:get-available-format | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
format | foxml | |||
url | {$foxml-url} | |||
14 | lax:get-available-format | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
format | mods | |||
url | {$mods-url} | |||
15 | lax:get-available-format | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
format | image | |||
url | {$image-url} | |||
16 | p:identity | page-with-formats | ||
17 | p:variable | page-formats | ||
select | /* | |||
18 | p:insert | |||
select | /lad:page/lad:resource | |||
pipe | result@page-with-formats | |||
match | lad:page | |||
position | first-child | |||
pipe | source@getting-available-formats | |||
19 | p:namespace-delete | |||
prefixes | array |
Checks if the resource is available on-line.
Returns with the @available attribute.
Zjistí, zda je požadovaný zdroj dostupný on-line.
Vrací element lad:resource s atributem @available.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
url | name = url | as = xs:anyURI | required = true |
format | name = format | as = xs:string | required = true |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Checks if the resource is available on-line.
Returns with the @available attribute.
Zjistí, zda je požadovaný zdroj dostupný on-line.
Vrací element lad:resource s atributem @available.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:http-request | request | ||
href | {$url} | |||
parameters | map{'status-only' : true(), 'follow-redirect' : 3 } | |||
4 | p:variable | available | ||
pipe | report@request | |||
select | .?status-code = (200, 307, 301) | |||
5 | p:add-attribute | |||
attribute-name | {$format} | |||
attribute-value | {$available} | |||
pipe | source@getting-available-format | |||
6 | p:insert | |||
match | lad:page | |||
position | first-child |
Programming library for communication with the Kramerius system, version 7.
Programová knihovna pro komunikaci se systémem Kramerius, verze 7.
Programming library for communication with the Kramerius system, version 7.
Programová knihovna pro komunikaci se systémem Kramerius, verze 7.
Gathers all requested metadata about the publication. Creates the content of the virtual document with links to all requested resources.
Enhance input data by adding requested resources on the document and page level.
Shromáždí všechna požadovaná metadata o publikaci. Vytvoří strukturu virutálního dokumentu s odkazy na všechny požadované zdroje.
Obohatí vstupní data přidáním požadovaných zdrojů na úrovni dokumentu a strany.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Gathers all requested metadata about the publication. Creates the content of the virtual document with links to all requested resources.
Enhance input data by adding requested resources on the document and page level.
Shromáždí všechna požadovaná metadata o publikaci. Vytvoří strukturu virutálního dokumentu s odkazy na všechny požadované zdroje.
Obohatí vstupní data přidáním požadovaných zdrojů na úrovni dokumentu a strany.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | resources | ||
select | /lad:document/las:api/las:resource | |||
4 | p:variable | library | ||
select | /lad:document/las:library | |||
5 | p:variable | base-url | ||
select | /lad:document/lad:options/@base-url | |||
6 | p:variable | id | ||
select | replace(/lad:document/@id, ':', '%3A') | |||
7 | p:variable | guid | ||
select | substring-after(/lad:document/@id, ':') | |||
8 | p:variable | url | ||
select | concat($base-url, '/search/api/client/v7.0/search?fl=pid,page.number,page.type&sort=rels_ext_index.sort%20asc&rows=4000&start=0&q=own_parent.pid:', '%22', $id, '%22') | |||
9 | p:variable | mods-url | ||
select | $resources[@type='MODS']/@url ! replace(., '{pid}', $id) | |||
10 | p:variable | dc-url | ||
select | $resources[@type='DC']/@url ! replace(., '{pid}', $id) | |||
11 | p:variable | foxml-url | ||
select | $resources[@type='FOXML']/@url ! replace(., '{pid}', $id) | |||
12 | p:insert | |||
match | /lad:document | |||
position | last-child | |||
13 | p:if | |||
p:store | ||||
test | $debug | |||
14 | p:identity | document-with-resources | ||
15 | lax:get-virtual-document-pages-v7 | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
document-id | {$guid} | |||
library-code | {$library/@code} | |||
url | {$url} | |||
16 | p:if | |||
p:store | ||||
test | $debug | |||
17 | p:identity | virutal-pages | ||
18 | p:insert | |||
pipe | result@virutal-pages | |||
match | lad:document | |||
position | last-child | |||
pipe | result@document-with-resources | |||
19 | p:if | |||
p:store | ||||
test | $debug | |||
20 | lax:get-available-formats-v7 | |||
base-uri | {$base-uri} | |||
base-url | {$base-url} | |||
debug-path | {$debug-path} | |||
21 | p:if | |||
p:store | ||||
test | $debug | |||
22 | lax:get-source-url-v7 | |||
base-uri | {$base-uri} | |||
debug-path | {$debug-path} | |||
23 | p:namespace-delete | |||
prefixes | lax xlog array xs map xhtml | |||
24 | p:if | |||
p:store | ||||
test | $debug | |||
25 | p:viewport | |||
match | lad:page | |||
p:add-attribute | ||||
p:variable | ||||
p:viewport |
|
| 26 | p:if | | | | | | | | p:store | | | | | | test | $debug | | 27 | p:insert | | | | | | | | select | /lad:pages | | | | | pipe | result@pages | | | | | match | /lad:document | | | | | position | last-child | | | | | pipe | result@document-with-resources | | | | | use-when | false() |
Gathers all requested data about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná data publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Gathers all requested data about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná data publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | base-url | ||
select | /lad:document/lad:options/@base-url | |||
4 | p:variable | id | ||
select | /lad:document/@id | |||
5 | p:variable | guid | ||
select | substring-after(/lad:document/@id, ':') | |||
6 | p:variable | url | ||
select | concat($base-url, '/item/', $id, '/children') |
Creates element for each page of the document that contains basic data: identifier, type and (page) number.
Returns element lad:pages.
Pro každou stránku dokumentu vytvoří element se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:pages.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
url | name = url | as = xs:string | required = true |
document-id | name = document-id | as = xs:string | required = true |
library-code | name = library-code | as = xs:string | required = true |
direction | value | primary |
---|---|---|
output | result | true |
Creates element for each page of the document that contains basic data: identifier, type and (page) number.
Returns element lad:pages.
Pro každou stránku dokumentu vytvoří element se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:pages.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:try | |||
p:catch |
|
| | | | p:group |
|
Converts from JSON to XML data about the document page. Creates element for the page with basic data: identifier, type and (page) number.
Returns lad:page element.
Zkonvertuje údje o stránce z JSONu do XML. Vytvoří element pro stránku dokumentu se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:page.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Converts from JSON to XML data about the document page. Creates element for the page with basic data: identifier, type and (page) number.
Returns lad:page element.
Zkonvertuje údje o stránce z JSONu do XML. Vytvoří element pro stránku dokumentu se základními údaji: identifikátor, typ a číslo (strany).
Vrací element lad:page.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:for-each | |||
select | .?response?docs?* | |||
4 | p:wrap-sequence | |||
wrapper | lad:pages |
For a resource associated with a page, builds a URL from the base URL, API version, document identifier, etc.
Creates @url attribute for the lad:page element.
Pro zdroj přiřazený ke stránce sestaví adresu URL ze základní adresy URL, verze rozhraní API, identifikátoru dokumentu apod.
Vytvoří atribut @url v rámci elementu lad:page.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
For a resource associated with a page, builds a URL from the base URL, API version, document identifier, etc.
Creates @url attribute for the lad:page element.
Pro zdroj přiřazený ke stránce sestaví adresu URL ze základní adresy URL, verze rozhraní API, identifikátoru dokumentu apod.
Vytvoří atribut @url v rámci elementu lad:page.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | options | ||
select | /lad:document/lad:options | |||
4 | p:variable | resources | ||
select | /lad:document/las:api/las:resource | |||
5 | p:viewport | |||
match | lad:page | |||
p:variable | ||||
p:variable | ||||
p:viewport |
|
Selects one page from the middle of the document and checks which resources are available on-line.
For each requested adds @available attribute.
Pro stránku zprostředka publikace zjistí, které všechny zdroje jsou dostupné on-line.
Pro každý požadovaný zdroj vytvoří atribut @available v rámci elementu lad:resource.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
base-url | name = base-url | as = xs:anyURI |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Selects one page from the middle of the document and checks which resources are available on-line.
For each requested adds @available attribute.
Pro stránku zprostředka publikace zjistí, které všechny zdroje jsou dostupné on-line.
Pro každý požadovaný zdroj vytvoří atribut @available v rámci elementu lad:resource.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | size | ||
as | xs:integer | |||
select | count(/lad:document/lad:pages/lad:page) | |||
2 | p:variable | page | ||
select | /lad:document/lad:pages/lad:page[xs:integer($size div 2)] | |||
3 | p:variable | options | ||
select | /lad:document/lad:options | |||
4 | p:variable | resources | ||
select | /lad:document/las:api/las:resource[tokenize(@level) = 'page'][@type=tokenize($options/@page-resources)] | |||
5 | p:for-each | |||
select | $resources | |||
6 | p:insert | |||
pipe | result@available-resources | |||
match | lad:page | |||
position | first-child | |||
pipe | source@getting-available-formats | |||
7 | p:namespace-delete | |||
prefixes | array |
Checks if the resource is available on-line.
Returns with the @available attribute.
Zjistí, zda je požadovaný zdroj dostupný on-line.
Vrací element lad:resource s atributem @available.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
url | name = url | as = xs:anyURI | required = true |
format | name = format | as = xs:string | required = true |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Checks if the resource is available on-line.
Returns with the @available attribute.
Zjistí, zda je požadovaný zdroj dostupný on-line.
Vrací element lad:resource s atributem @available.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:http-request | request | ||
assert | .?status-code lt 500 | |||
href | {$url} | |||
parameters | map{'status-only' : true(), 'follow-redirect' : 3 } | |||
4 | p:variable | available | ||
pipe | report@request | |||
select | .?status-code = (200, 307, 301) | |||
5 | p:add-attribute | |||
attribute-name | {$format} | |||
attribute-value | {$available} | |||
pipe | source@getting-available-format | |||
6 | p:insert | |||
match | lad:page | |||
position | first-child | |||
use-when | false() | |||
7 | p:identity |
The main programming library for digital library data retrieval and enrichment.
Hlavní programová knihovna pro získání dat z digitálních knihoven a jejich obohacení.
name | properties |
---|
The main programming library for digital library data retrieval and enrichment.
Hlavní programová knihovna pro získání dat z digitálních knihoven a jejich obohacení.
Gathers all requested metadata about the publication. Creates the content of the virtual document with links to all requested resources.
Shromáždí všechna požadovaná metadata o publikaci. Vytvoří strukturu virutálního dokumentu s odkazy na všechny požadované zdroje.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
library-code | name = library-code | as = xs:string | required = true |
api-version | name = api-version | as = xs:string? |
system | name = system | as = xs:string? | values = ('Kramerius', 'Polona') | required = false |
document-resources | name = document-resources | as = xs:token* |
page-resources | name = page-resources | as = xs:token* |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Gathers all requested metadata about the publication. Creates the content of the virtual document with links to all requested resources.
Shromáždí všechna požadovaná metadata o publikaci. Vytvoří strukturu virutálního dokumentu s odkazy na všechny požadované zdroje.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | library | ||
pipe | settings@building-virtual-document | |||
select | /las:digital-libraries/las:libraries/las:library[@code=$library-code] | |||
4 | p:variable | apis | ||
pipe | settings@building-virtual-document | |||
select | /las:digital-libraries/las:apis/las:api | |||
5 | p:variable | api | ||
select | let $lib-apis := $apis[@xml:id =$library/las:api/@ref/substring-after(., '#')] return if(exists($api-version)) then $lib-apis[@version=$api-version] else $lib-apis[1] | |||
6 | p:variable | base-url | ||
select | $library/las:api[@ref=concat('#', $api/@xml:id)]/@url | |||
7 | p:identity | options | ||
8 | p:for-each | |||
select | /lad:documents/lad:document | |||
pipe | source@building-virtual-document |
Gathers all requested metadata about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná metadata publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Gathers all requested metadata about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná metadata publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | api-version | ||
select | /lad:document/lad:options/@api-version | |||
4 | p:variable | system | ||
select | /lad:document/lad:options/@system | |||
5 | p:variable | library-code | ||
select | /lad:document/las:library/@code | |||
6 | p:variable | library | ||
select | /lad:document/las:library | |||
7 | p:choose | |||
8 | p:namespace-delete | |||
prefixes | c xs map mox array | |||
9 | p:if | |||
p:store | ||||
p:variable | ||||
test | $debug |
Gathers all requested data and metadata about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná data a metadata publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
pause-before-request | name = pause-before-request | select = 2 | as = xs:integer |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Gathers all requested data and metadata about the publication. Downloads the content (files) of the virtual document from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Shromáždí všechna požadovaná data a metadata publikace. Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:viewport | |||
match | lad:document | |||
p:variable | ||||
p:variable | ||||
p:variable | ||||
p:variable | ||||
p:viewport |
|
| | | | p:viewport |
|
| 2 | p:viewport | | | | | | | | match | lad:document | | | | | p:if |
|
| | | | p:if |
|
| | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | |
Downloads the content (files) of the document-related resources from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
position | name = position | required = true |
type | name = type | required = true | as = xs:string |
pause-before-request | name = pause-before-request | required = true | as = xs:integer |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Downloads the content (files) of the document-related resources from external targets.
Saves data to the disk and enhance input data by adding info about local path of the requested resources.
Stáhne obsah (soubory) virutálního dokumentu z externích odkazů.
Uloží data na disk a obohatí vstupní data přidáním informace o lokálním uložení zdrojů.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | output-directory-uri | ||
select | resolve-uri($output-directory, $base-uri) | |||
4 | p:viewport | |||
lax:check-local-file-exists | ||||
lax:check-local-file-exists |
|
| | | | match | lad:resource | | | | | p:if |
|
| | | | p:set-attributes | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | |
Checks if the file is stored on the local computer.
Zjistí, jestli je soubor stažen na místním počítači.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Checks if the file is stored on the local computer.
Zjistí, jestli je soubor stažen na místním počítači.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | local-path | ||
select | /*/@local-uri | |||
4 | p:file-info | |||
fail-on-error | false | |||
href | {$local-path} | |||
5 | p:variable | file-exists | ||
select | exists(/c:file) | |||
6 | p:add-attribute | |||
attribute-name | local-file-exists | |||
attribute-value | {$file-exists} | |||
pipe | source@checking-local-file-exists |
Downloads all data of the virtual document.
Stáhne všechna data virtuálního dokumentu.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true |
type | name = type | required = true | as = xs:string |
pause-before-request | name = pause-before-request | required = true | as = xs:integer |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Downloads all data of the virtual document.
Stáhne všechna data virtuálního dokumentu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:for-each | |||
select | . |
Downloads one document from the web.
Stáhne z webu jeden dokument.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
url | name = url | as = xs:anyURI |
local-path | name = local-path | as = xs:string |
pause-before-request | name = pause-before-request | required = true | as = xs:integer |
direction | value | primary |
---|---|---|
input | source | false |
output | result | true |
Downloads one document from the web.
Stáhne z webu jeden dokument.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | content-type | ||
select | if(ends-with($url, '.txt')) then 'text/plain' else if(ends-with($url, '.djvu')) then 'image/vnd.djvu' else '/' | |||
2 | p:variable | local-path-uri | ||
select | resolve-uri($local-path, $base-uri) | |||
3 | p:try | |||
p:catch |
File {$url} not downloaded
|
| | | | p:catch |
File {$url} not downloaded
|
| | | | p:http-request | | | | | | p:store | |
Enriches available (textual) data of the digital book by available services.
Obohatí dostupná dostupná (textová) data digitální publikací pomocí dostupných služeb.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
pause-before-request | name = pause-before-request | select = 2 | as = xs:integer |
output-format | name = output-format | values = ('TEXT', 'TEI') | as = xs:string* |
enrichment | name = enrichment | values = ('ENTITIES', 'MORPHOLOGY') | as = xs:string* |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Enriches available (textual) data of the digital book by available services.
Obohatí dostupná dostupná (textová) data digitální publikací pomocí dostupných služeb.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:viewport | |||
match | lad:document | |||
p:viewport |
|
| | | | use-when | false() | | 2 | lae:enrich-data | | | | | | | | base-uri | {$base-uri} | | | | | debug-path | {$debug-path} | | | | | enrichment | $enrichment | | | | | output-directory | {$output-directory} | | | | | output-format | $output-format | | | | | pipe | report-in@enriching-document-data | | | | | pipe | settings@enriching-document-data |
Creates report with links to original, downloaded and enriched data.
Vytvoří přehled s odkazy na původní, stažená a obohacená data.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | select = () | as = xs:string? |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
output | result-uri | false |
Creates report with links to original, downloaded and enriched data.
Vytvoří přehled s odkazy na původní, stažená a obohacená data.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | save-output | ||
select | $output-directory || '' ne '' | |||
4 | p:variable | output-directory-uri | ||
select | resolve-uri($output-directory, $base-uri) | |||
5 | p:for-each | |||
select | /* |
Gets nickname or id of the document (without leading 'uuid:') in plain text.
Získá uživatelské jméno nedo identifikátor dokumentu (bez úvodního 'uuid:') ve formátu prostého textu.
direction | value | primary |
---|---|---|
input | source | false |
output | result | true |
Gets nickname or id of the document (without leading 'uuid:') in plain text.
Získá uživatelské jméno nedo identifikátor dokumentu (bez úvodního 'uuid:') ve formátu prostého textu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:identity |
Steps for standalone operations with NameTag service and data.
Kroky pro samostatné operace se službou a daty NameTag.
Steps for standalone operations with NameTag service and data.
Kroky pro samostatné operace se službou a daty NameTag.
It calls the REST API of the NameTag service, passes it the text to recognize, and returns the result in JSON format.
Zavolá rozhraní REST API služby NameTag, předá jí text k rozpoznání a vrátí výsledek ve formátu JSON.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
It calls the REST API of the NameTag service, passes it the text to recognize, and returns the result in JSON format.
Zavolá rozhraní REST API služby NameTag, předá jí text k rozpoznání a vrátí výsledek ve formátu JSON.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | service | ||
pipe | settings@getting-nametag-analysis | |||
select | //las:service[@code='nametag'] | |||
4 | p:variable | service-url | ||
p:documentation |
URL of the REST service.
URL RESTové služby.
|
| | | | select | $service/las:api/@url | | 5 | p:variable | api-id | | | | | | | p:documentation |
Identifier of the REST service.
Identifikátor RESTové služby.
|
| | | | select | substring-after($service/las:api/@ref, '#') | | 6 | p:variable | feature | | | | | | | pipe | settings@getting-nametag-analysis | | | | | select | //las:api[@xml:id=$api-id]/las:feature[@type='entities'][@method='post'] | | 7 | p:variable | step-url | | | | | | | select | concat($service-url, $feature/@url) | | 8 | p:variable | full-text | | | | | | | select | . | | 9 | p:http-request | | | | | | | | href | {$step-url} | | | | | method | 'POST' | | | | | p:documentation |
Calling the NameTag service API using the POST method. The input parameter to the service is plain text, encoded for the URI.
Volání API služby NameTag pomocí metodyPOST. Jako vstupní parametr služby se předává prostý text, kódovaný pro URI.
|
| 10 | p:identity | final | | | | 11 | p:if | | | | | | | | p:store | | | | | | test | $debug |
Converts the analysis output in JSON format to an XML document.
Převede výstup analýzy ve formátu JSON na dokument ve formátu XML.
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Converts the analysis output in JSON format to an XML document.
Převede výstup analýzy ve formátu JSON na dokument ve formátu XML.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | model | ||
select | normalize-space(.?model) | |||
2 | p:cast-content-type | |||
content-type | application/xml | |||
select | .?result | |||
3 | p:xslt | |||
href | ../xslt/nametag/nametag-json-to-xml-text.xsl | |||
version | 3.0 | |||
4 | p:cast-content-type | |||
content-type | application/xml | |||
5 | p:choose |
For each page of the virtual document, it gets its text, sends it to the REST interface of the NameTag service, converts the result to XML format and stores it in a folder.
Pro každou stránku virtuálního dokumentu získá její text, odešle ho na RESTové rozhraní služby NameTag, výsledek konvertuje do formátu XML a uloží do složky.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
For each page of the virtual document, it gets its text, sends it to the REST interface of the NameTag service, converts the result to XML format and stores it in a folder.
Pro každou stránku virtuálního dokumentu získá její text, odešle ho na RESTové rozhraní služby NameTag, výsledek konvertuje do formátu XML a uloží do složky.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | result-directory-path | ||
p:documentation |
The folder where downloaded documents are saved. The path to the folder can be absolute or relative.
Složka, do níž se uloží stažené dokumenty. Cesta ke složce může být absolutní i relativní.
|
| | | | select | concat($output-directory, '/nametag') | | 4 | p:variable | result-directory-uri | | | | | | | select | resolve-uri($result-directory-path, $base-uri) | | 5 | p:if | | | | | | | | p:store |
|
| | | | test | $debug | | 6 | p:viewport | | | | | | | | match | lad:pages/lad:page/lad:resource[@type='text'][@local-file-exists='true'] | | | | | p:if |
|
| | | | p:variable | | | | | | use-when | true() | | 7 | p:identity | final | | | | 8 | p:if | | | | | | | | p:store | | | | | | test | $debug | | 9 | p:identity | metadata | | | | 10 | p:insert | final-report | | | | | | | pipe | @metadata | | | | | match | lant:report/lant:result | | | | | position | last-child | | | | | pipe | source@getting-nametag-analyses |
Steps for standalone operations with TEI data.
Kroky pro samostatné operace s daty ve formátu TEI.
Steps for standalone operations with TEI data.
Kroky pro samostatné operace s daty ve formátu TEI.
Converts one document in ALTO format to TEI P5.
Konvertuje jeden dokument ve formátu ALTO na formát TEI P5.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
page-number | name = page-number | as = xs:string? |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Converts one document in ALTO format to TEI P5.
Konvertuje jeden dokument ve formátu ALTO na formát TEI P5.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:xslt | |||
parameters | map {'page-number' : $page-number } | |||
href | ../xslt/conversion/alto2tei.xsl | |||
4 | p:identity | final | ||
5 | p:identity | final-report | ||
pipe | report-in@converting-alto-to-tei |
Converts one document in NameTag XML format to TEI P5.
Konvertuje jeden dokument ve formátu NameTag XML na formát TEI P5.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
page-number | name = page-number | as = xs:string? |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Converts one document in NameTag XML format to TEI P5.
Konvertuje jeden dokument ve formátu NameTag XML na formát TEI P5.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:xslt | |||
parameters | map {'page-number' : $page-number } | |||
href | ../xslt/nametag/nametag-xml-to-tei.xsl | |||
4 | p:identity | final | ||
5 | p:identity | final-report | ||
pipe | report-in@converting-nametag-to-tei |
Converts one page in CoNLLLu format, generated by UDPipe to TEI P5.
Převede jednu stranu s daty ve formátu CoNLLLu, který generuje UDPipe, do formátu TEI P5.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
page-number | name = page-number | as = xs:string? |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Converts one page in CoNLLLu format, generated by UDPipe to TEI P5.
Převede jednu stranu s daty ve formátu CoNLLLu, který generuje UDPipe, do formátu TEI P5.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | udpipe-text | ||
select | . | |||
4 | p:if | |||
p:store | ||||
test | $debug | |||
5 | p:xslt | |||
parameters | map{'input': $udpipe-text} | |||
href | ../xslt/conversion/conllu-to-xml.xsl | |||
6 | p:if | |||
p:store | ||||
test | $debug | |||
7 | p:xslt | |||
href | ../xslt/conversion/conllu-xml-to-hierarchy.xsl | |||
8 | p:if | |||
p:store | ||||
test | $debug | |||
9 | p:xslt | |||
parameters | map {'page-number' : $page-number } | |||
href | ../xslt/conversion/conllu-xml-hierarchy-to-tei.xsl | |||
10 | p:if | |||
p:store | ||||
test | $debug | |||
11 | p:identity | final | ||
12 | p:identity | final-report | ||
pipe | report-in@converting-udpipe-to-tei |
Merge different representation of one page in TEI, comming from different sources, like ALTO, NameTag, and UDPipe.
Zkombinuje různé reprezentace stejné stránky ve formátu TEI, které pocházejí z různých zdrojů, jako např. ALTO, NameTag nebo UDPipe.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
input | udpipe | false |
input | alto | false |
input | report-in | false |
output | result | true |
output | report | false |
Merge different representation of one page in TEI, comming from different sources, like ALTO, NameTag, and UDPipe.
Zkombinuje různé reprezentace stejné stránky ve formátu TEI, které pocházejí z různých zdrojů, jako např. ALTO, NameTag nebo UDPipe.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | udpipe-root | ||
pipe | udpipe@merging-tei-representations | |||
select | /* | |||
4 | p:xslt | |||
parameters | map{'udpipe': $udpipe-root} | |||
href | ../xslt/tei/merge-nametag-with-udpipe.xsl | |||
5 | p:if | |||
p:store | ||||
test | $debug | |||
6 | p:identity | final | ||
7 | p:identity | final-report | ||
pipe | report-in@merging-tei-representations |
Converts a virtual document to TEI P5 format, both at the page level and the whole document level.
Konvertuje virtuální dokument do formátu TEI P5, a to na úrovni jednotlivýh stránek i celého dokumentu.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Converts a virtual document to TEI P5 format, both at the page level and the whole document level.
Konvertuje virtuální dokument do formátu TEI P5, a to na úrovni jednotlivýh stránek i celého dokumentu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | result-directory-path | ||
p:documentation |
The folder where generated documents are saved. The path to the folder can be absolute or relative.
Složka, do níž se uloží vygenerované dokumenty. Cesta ke složce může být absolutní i relativní.
|
| | | | select | concat($output-directory, '/tei') | | 4 | p:variable | result-directory-uri | | | | | | | select | resolve-uri($result-directory-path, $base-uri) | | 5 | p:viewport | | | | | | | | match | lad:pages/lad:page | | | | | p:if |
|
| | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | use-when | true() | | 6 | p:identity | mid-final | | | | 7 | p:identity | mid-report | | | | | | | pipe | report-in@converting-to-tei | | 8 | lat:combine-tei-pages | combining-tei-pages | | | | | | | base-uri | {$base-uri} | | | | | debug-path | {$debug-path} | | | | | output-directory | {$output-directory} | | | | | pipe | @mid-report | | | | | pipe | @mid-final | | 9 | p:identity | final | | | | 10 | p:identity | final-report | | | | | | | pipe | report@combining-tei-pages |
Combines available TEI pages to one document.
Sloučí dostupné TEI stránky do jednoho TEI dokumentu.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Combines available TEI pages to one document.
Sloučí dostupné TEI stránky do jednoho TEI dokumentu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | result-directory-path | ||
p:documentation |
The folder where generated documents are saved. The path to the folder can be absolute or relative.
Složka, do níž se uloží vygenerované dokumenty. Cesta ke složce může být absolutní i relativní.
|
| | | | select | $output-directory | | 4 | p:variable | result-directory-uri | | | | | | | select | resolve-uri($result-directory-path, $base-uri) | | 5 | p:variable | foxml | | | | | | | select | /lad:document/lad:resource[@type='foxml'][@local-file-exists='true'] | | 6 | p:variable | teis | | | | | | | select | /lad:document/lad:pages/lad:page/lad:resource[@type='tei'][@local-file-exists='true'] | | 7 | p:if | | | | | | | | p:store | | | | | | test | $debug | | 8 | p:if | | | | | | | | p:identity |
|
| | | | p:if |
|
| | | | p:insert |
|
| | | | p:namespace-delete | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | test | exists($foxml) and exists($teis) | | 9 | p:identity | final | | | | 10 | p:identity | final-report | | | | | | | pipe | report-in@combining-tei-pages |
Steps for standalone operations with plain text data.
Kroky pro samostatné operace s daty ve formátu prostého textu.
Steps for standalone operations with plain text data.
Kroky pro samostatné operace s daty ve formátu prostého textu.
Combines available TEI pages to one document.
Sloučí dostupné TEI stránky do jednoho TEI dokumentu.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | report-in | false |
output | result | true |
output | report | false |
Combines available TEI pages to one document.
Sloučí dostupné TEI stránky do jednoho TEI dokumentu.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | result-directory-path | ||
p:documentation |
The folder where generated documents are saved. The path to the folder can be absolute or relative.
Složka, do níž se uloží vygenerované dokumenty. Cesta ke složce může být absolutní i relativní.
|
| | | | select | $output-directory | | 4 | p:variable | result-directory-uri | | | | | | | select | resolve-uri($result-directory-path, $base-uri) | | 5 | p:variable | resources | | | | | | | select | /lad:document/lad:pages/lad:page/lad:resource[@type='text'][@local-file-exists='true'] | | 6 | p:if | | | | | | | | p:store | | | | | | test | $debug | | 7 | p:if | | | | | | | | p:file-info | | | | | | p:identity |
|
| | | | p:if |
|
| | | | p:insert |
|
| | | | p:namespace-delete | | | | | | p:variable | | | | | | p:variable | | | | | | p:variable | | | | | | test | exists($resources) | | 8 | p:identity | final | | | | 9 | p:identity | final-report | | | | | | | pipe | report-in@combining-text-pages |
Steps for standalone operations with UDPipe service and data.
Kroky pro samostatné operace se službou a daty UDPipe.
Steps for standalone operations with UDPipe service and data.
Kroky pro samostatné operace se službou a daty UDPipe.
Calls the REST API of the UDPipe service, passes it the text to recognize, and returns the result in JSON format.
Zavolá rozhraní REST API služby UDPipe, předá jí text k rozpoznání a vrátí výsledek ve formátu JSON.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
Calls the REST API of the UDPipe service, passes it the text to recognize, and returns the result in JSON format.
Zavolá rozhraní REST API služby UDPipe, předá jí text k rozpoznání a vrátí výsledek ve formátu JSON.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | service | ||
pipe | settings@getting-udpipe-analysis | |||
select | //las:service[@code='udpipe'] | |||
4 | p:variable | service-url | ||
p:documentation |
URL of the REST service
URL RESTové služby
|
| | | | select | $service/las:api/@url | | 5 | p:variable | api-id | | | | | | | p:documentation |
Identifier of the REST service
Identifikátor RESTové služby
|
| | | | select | substring-after($service/las:api/@ref, '#') | | 6 | p:variable | feature | | | | | | | pipe | settings@getting-udpipe-analysis | | | | | select | //las:api[@xml:id=$api-id]/las:feature[@type='process'][@method='post'] | | 7 | p:variable | step-url | | | | | | | select | concat($service-url, $feature/@url) | | 8 | p:variable | step-params | | | | | | | select | string-join($feature/las:param[@place='body'][@name !='data']/@name, '=&') | | 9 | p:variable | full-text | | | | | | | select | . | | 10 | p:http-request | | | | | | | | href | {$step-url} | | | | | method | 'POST' | | | | | p:documentation |
Calling the UDPipe service API using the POST method. The input parameter to the service is plain text, encoded for the URI.
Volání API služby UDPipe pomocí metodyPOST. Jako vstupní parametr služby se předává prostý text, kódovaný pro URI.
|
| 11 | p:identity | final | | | | 12 | p:if | | | | | | | | p:store | | | | | | test | $debug |
Converts the analysis output in JSON format to an XML document.
Převede výstup analýzy ve formátu JSON na dokument ve formátu XML.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
direction | value | primary |
---|---|---|
input | source | true |
output | result | true |
Converts the analysis output in JSON format to an XML document.
Převede výstup analýzy ve formátu JSON na dokument ve formátu XML.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | model | ||
select | normalize-space(.?model) | |||
4 | p:if | |||
p:store | ||||
test | $debug | |||
5 | p:identity | |||
p:documentation |
Convert JSON to plain text without escaping characters.
Převod formátu JSON do TXT bez zbytečných escapovaných textů.
|
| 6 | p:if | | | | | | | | p:store | | | | | | test | $debug | | 7 | p:xslt | | | | | | | | href | ../xslt/udpipe/udpipe-json-to-text.xsl | | | | | version | 3.0 | | 8 | p:if | | | | | | | | p:store | | | | | | test | $debug |
For each page of the virtual document, it gets its text, sends it to the REST interface of the UDPipe service, converts the result to XML format and stores it in a folder.
Pro každou stránku virtuálního dokumentu získá její text, odešle ho na RESTové rozhraní služby UDPipe, výsledek konvertuje do formátu XML a uloží do složky.
name | properties |
---|---|
debug-path | name = debug-path | select = () | as = xs:string? |
base-uri | name = base-uri | as = xs:anyURI | select = static-base-uri() |
output-directory | name = output-directory | required = true | as = xs:string |
direction | value | primary |
---|---|---|
input | source | true |
input | settings | false |
input | report-in | false |
output | result | true |
output | report | false |
For each page of the virtual document, it gets its text, sends it to the REST interface of the UDPipe service, converts the result to XML format and stores it in a folder.
Pro každou stránku virtuálního dokumentu získá její text, odešle ho na RESTové rozhraní služby UDPipe, výsledek konvertuje do formátu XML a uloží do složky.
position | step | name | parameter | value |
---|---|---|---|---|
1 | p:variable | debug | ||
select | $debug-path || '' ne '' | |||
2 | p:variable | debug-path-uri | ||
select | resolve-uri($debug-path, $base-uri) | |||
3 | p:variable | result-directory-path | ||
p:documentation |
The folder where downloaded documents are saved. The path to the folder can be absolute or relative.
Složka, do níž se uloží stažené dokumenty. Cesta ke složce může být absolutní i relativní.
|
| | | | select | concat($output-directory, '/udpipe') | | 4 | p:variable | result-directory-uri | | | | | | | select | resolve-uri($result-directory-path, $base-uri) | | 5 | p:if | | | | | | | | p:store |
|
| | | | test | $debug | | 6 | p:viewport | | | | | | | | match | lad:pages/lad:page/lad:resource[@type='nametag'][@local-file-exists='true'] | | | | | p:if |
|
| | | | p:variable | | | | | | use-when | true() | | 7 | p:identity | final | | | | 8 | p:if | | | | | | | | p:store | | | | | | test | $debug | | 9 | p:identity | metadata | | | | 10 | p:insert | final-report | | | | | | | pipe | @metadata | | | | | match | laud:report/laud:result | | | | | p:documentation | Doplnění zprávy o zpracovaných prvcích. | | | | | position | last-child | | | | | pipe | source@getting-udpipe-analyses |