diff --git a/etc/data/Publisher-1.xml b/etc/data/Publisher-1.xml deleted file mode 100644 index f1fe51c5..00000000 --- a/etc/data/Publisher-1.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - 123 - 5717905 -
- - 5678 - - 118 - 49 - - 1970 - 12 - 07 - - - - - The Influence of Calcium on Cholesterol in Human Serum - - - - Doe - John - - - Smith - Jane - - -
-
diff --git a/etc/data/Publisher-2.xml b/etc/data/Publisher-2.xml deleted file mode 100644 index e20d5d34..00000000 --- a/etc/data/Publisher-2.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - 456 - 5717905 -
- - 1234 - - 120 - 49 - - 1968 - 12 - 07 - - - - - The Influence of Magnesium on Cholesterol in Human Serum - - - - Doe - John - - - Smith - Jane - - -
-
diff --git a/etc/data/articleCitation.json b/etc/data/articleCitation.json deleted file mode 100644 index 288e8391..00000000 --- a/etc/data/articleCitation.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "template": { - "context": "/Citation/Article", - "rows": [ - { - "schemaName": "Medical", - "viewName": "Publications", - "columns": [ - { - "name": "ID", - "scalarType": "long", - "val": "../ID" - }, - { - "name": "ISSN", - "scalarType": "string", - "val": "Journal/ISSN" - }, - { - "name": "Volume", - "scalarType": "string", - "val": "Journal/JournalIssue/Volume" - }, - { - "name": "Date", - "scalarType": "date", - "val":"Journal/JournalIssue/PubDate/Year||'-'||Journal/JournalIssue/PubDate/Month||'-'||Journal/JournalIssue/PubDate/Day" - } - ] - } - ] - } -} diff --git a/etc/data/employees.tdej b/etc/data/employees.tdej deleted file mode 100644 index 1f9d7773..00000000 --- a/etc/data/employees.tdej +++ /dev/null @@ -1,28 +0,0 @@ -{ - "template":{ - "context":"/Employee", - "rows":[ - { - "schemaName":"company", - "viewName":"employees", - "columns":[ - { - "name":"EmployeeID", - "scalarType":"int", - "val":"ID" - }, - { - "name":"FirstName", - "scalarType":"string", - "val":"FirstName" - }, - { - "name":"LastName", - "scalarType":"string", - "val":"LastName" - } - ] - } - ] - } -} diff --git a/etc/data/masterDetail.tdex b/etc/data/masterDetail.tdex deleted file mode 100644 index 2e593c9f..00000000 --- a/etc/data/masterDetail.tdex +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/etc/data/masterDetail.xml b/etc/data/masterDetail.xml deleted file mode 100644 index cd217d2a..00000000 --- a/etc/data/masterDetail.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 1Master 12015-12-01 - 2Master 22015-12-02 - - - 1Detail 1110.01blue - 2Detail 2220.02blue - 3Detail 3130.03blue - 4Detail 4240.04green - 5Detail 5150.05green - 6Detail 6260.06green - - diff --git a/etc/data/musician.tdex b/etc/data/musician.tdex deleted file mode 100644 index 4e2c2390..00000000 --- a/etc/data/musician.tdex +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/etc/data/rowPostProcessors.sjs b/etc/data/rowPostProcessors.sjs deleted file mode 100644 index 3fcd473f..00000000 --- a/etc/data/rowPostProcessors.sjs +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2020 MarkLogic Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -'use strict'; - -function arrayMapper(row) { - const result = row.concat(); - result.push((typeof result[0] === 'string') ? 'seconds' : - fn.floor(fn.secondsFromDateTime(fn.currentDateTime())) - ); - return result; -} -function arrayReducer(previous, row) { - const val = (previous === void 0) ? 0 : previous + row[0]; - return val; -} -function secondsMapper(row) { - row.seconds = new Date().getSeconds(); - return row; -} -function fibReducer(previous, row) { - const i = Array.isArray(previous) ? previous.length : 0; - - row.i = i; - - switch(i) { - case 0: - row.fib = 0; - break; - case 1: - row.fib = 1; - break; - default: - row.fib = previous[i - 2].fib + previous[i - 1].fib; - break; - } - - if (i === 0) { - previous = [row]; - } else { - previous.push(row); - } - - return previous; -} - -module.exports = { - arrayMapper: arrayMapper, - arrayReducer: arrayReducer, - secondsMapper: secondsMapper, - fibReducer: fibReducer -}; diff --git a/etc/data/transformDoc-test-two-params.mjs b/etc/data/transformDoc-test-two-params.mjs deleted file mode 100644 index 2361a844..00000000 --- a/etc/data/transformDoc-test-two-params.mjs +++ /dev/null @@ -1,5 +0,0 @@ -const result = {"hello": "world", - "Patch1": external.patch1, - "Patch2": external.patch2, - "theDoc": external.doc} -result diff --git a/etc/data/transformDoc-test.mjs b/etc/data/transformDoc-test.mjs deleted file mode 100644 index 86d20bd6..00000000 --- a/etc/data/transformDoc-test.mjs +++ /dev/null @@ -1,6 +0,0 @@ -const result = { - "hello": "world", - "yourParam": external.myParam, - "theDoc": external.doc -} -result diff --git a/etc/data/transformDoc-test.xslt b/etc/data/transformDoc-test.xslt deleted file mode 100644 index bded8335..00000000 --- a/etc/data/transformDoc-test.xslt +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - world - - - - diff --git a/etc/data/tripleSets.xml b/etc/data/tripleSets.xml deleted file mode 100644 index f298b476..00000000 --- a/etc/data/tripleSets.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - /datastore/id#A - http://purl.org/dc/terms/title - The A datastore - - /datastore/id#A - http://purl.org/dc/terms/type - http://purl.org/dc/dcmitype/Dataset - - /datastore/id#A - http://purl.org/dc/terms/description - Describing A - - /datastore/id#A - http://purl.org/dc/terms/alternative - The Awesome datastore - - /datastore/id#B - http://purl.org/dc/terms/title - The B datastore - - /datastore/id#B - http://purl.org/dc/terms/type - http://purl.org/dc/dcmitype/Dataset - - /datastore/id#B - http://purl.org/dc/terms/description - Describing B - - /datastore/id#B - http://purl.org/dc/terms/modified - 2015-12-14 - - /master/id#1 - http://purl.org/dc/terms/identifier - 1 - - /master/id#1 - http://purl.org/dc/terms/source - /datastore/id#A - - /master/id#1 - http://purl.org/dc/terms/description - First description - - /master/id#2 - http://purl.org/dc/terms/identifier - 2 - - /master/id#2 - http://purl.org/dc/terms/source - /datastore/id#B - - /master/id#2 - http://purl.org/dc/terms/description - Second description - - - diff --git a/etc/data/unnestView.tdej b/etc/data/unnestView.tdej deleted file mode 100644 index 4d45bfc8..00000000 --- a/etc/data/unnestView.tdej +++ /dev/null @@ -1,27 +0,0 @@ -{ - "template": { - "context": "office", - "rows": [ - { - "schemaName": "unnestSchema", - "viewName": "unnestView", - "columns": [ - { - "name": "department", - "scalarType": "string", - "val": "department", - "nullable": true, - "invalidValues": "ignore" - }, - { - "name": "teamMembers", - "scalarType": "string", - "val": "teamMembers", - "nullable": true, - "invalidValues": "ignore" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/etc/data/validateDoc-test.json b/etc/data/validateDoc-test.json deleted file mode 100644 index dc66b844..00000000 --- a/etc/data/validateDoc-test.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "language": "zxx", - "$schema": "http://json-schema.org/draft-07/schema#", - "properties": { - "count": { "type":"integer", "minimum":0 }, - "items": { "type":"array", "items": {"type":"string", "minLength":1 } } - } -} \ No newline at end of file diff --git a/etc/data/validateDoc-test.sch b/etc/data/validateDoc-test.sch deleted file mode 100644 index 1ac06d7b..00000000 --- a/etc/data/validateDoc-test.sch +++ /dev/null @@ -1,36 +0,0 @@ - -user-validation - - - - - - - - - user element must have an id attribute - - user element must have 5 child elements: name, gender, - age, score and result - - score element must have a total attribute - score element must have two child elements - - - - - - total score must be a sum of test-1 and test-2 scores - - - if the score is greater than 30 then the result will be - 'pass' else 'fail' - - - - -the score does not match with the result - - \ No newline at end of file diff --git a/etc/data/validateDoc-test.sch-validator.xsl b/etc/data/validateDoc-test.sch-validator.xsl deleted file mode 100644 index 360ca1b3..00000000 --- a/etc/data/validateDoc-test.sch-validator.xsl +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - /[]/@ - - - /[]/@ - - - - - - - . - - U - U - U.n - U.__ - - - - - - - structuralstructuralco-occurenceco-occurence - - user-validation - - - - - - - - user element must have an id attribute - - - - - - - user element must have 5 child elements: name, gender, - age, score and result - - - - - - - score element must have a total attribute - - - - - - score element must have two child elements - - - - - - - - - - - - total score must be a sum of test-1 and test-2 scores - - - - - - - - if the score is greater than 30 then the result will be - 'pass' else 'fail' - - the score does not match with the result - - - - diff --git a/test-basic/rows.js b/test-basic/rows.js index f0ea8121..704a7fbe 100644 --- a/test-basic/rows.js +++ b/test-basic/rows.js @@ -236,7 +236,6 @@ describe('rows', function(){ }); describe('from a TDE view', function(){ - // View defined in etc/data/employees.tdej const planFromBuilderTemplate = p.fromView('company', 'employees', '') .select(['EmployeeID', 'FirstName', 'LastName']) .orderBy('LastName');