solid-panes 3.7.2 → 3.7.3-125af630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/basicPreferences.js +155 -0
- package/dist/dashboard/basicPreferences.js.map +1 -0
- package/dist/dashboard/dashboardPane.js +63 -0
- package/dist/dashboard/dashboardPane.js.map +1 -0
- package/dist/dashboard/homepage.js +63 -0
- package/dist/dashboard/homepage.js.map +1 -0
- package/dist/home/homePane.js +68 -0
- package/dist/home/homePane.js.map +1 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/internalPane.js +195 -0
- package/dist/internal/internalPane.js.map +1 -0
- package/dist/mainPage/footer.js +16 -0
- package/dist/mainPage/footer.js.map +1 -0
- package/dist/mainPage/header.js +84 -0
- package/dist/mainPage/header.js.map +1 -0
- package/{lib → dist}/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.js +30 -0
- package/dist/mainPage/index.js.map +1 -0
- package/dist/outline/context.js +13 -0
- package/dist/outline/context.js.map +1 -0
- package/dist/outline/propertyViews.js +33 -0
- package/dist/outline/propertyViews.js.map +1 -0
- package/dist/outline/viewAsImage.js +7 -0
- package/dist/outline/viewAsImage.js.map +1 -0
- package/{lib → dist}/outline/viewAsMbox.js +4 -14
- package/dist/outline/viewAsMbox.js.map +1 -0
- package/dist/pad/padPane.js +420 -0
- package/dist/pad/padPane.js.map +1 -0
- package/dist/sharing/sharingPane.js +45 -0
- package/dist/sharing/sharingPane.js.map +1 -0
- package/dist/tabbed/tabbedPane.js +55 -0
- package/dist/tabbed/tabbedPane.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.js +158 -0
- package/dist/trustedApplications/trustedApplications.dom.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.js +24 -0
- package/dist/trustedApplications/trustedApplications.utils.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.js +62 -0
- package/dist/trustedApplications/trustedApplications.view.js.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/versionInfo.js +31 -0
- package/dist/versionInfo.js.map +1 -0
- package/package.json +34 -22
- package/Documentation/VisualLanguage.html +0 -538
- package/Documentation/conventions.md +0 -333
- package/coverage/clover.xml +0 -152
- package/coverage/coverage-final.json +0 -6
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -131
- package/coverage/lcov-report/outline/index.html +0 -161
- package/coverage/lcov-report/outline/outlineIcons.js.html +0 -565
- package/coverage/lcov-report/outline/propertyViews.ts.html +0 -196
- package/coverage/lcov-report/outline/viewAsImage.ts.html +0 -121
- package/coverage/lcov-report/outline/viewAsMbox.ts.html +0 -127
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/trustedApplications/index.html +0 -116
- package/coverage/lcov-report/trustedApplications/trustedApplications.utils.ts.html +0 -238
- package/coverage/lcov.info +0 -204
- package/dev/index.html +0 -28
- package/dev/loader.ts +0 -91
- package/dev/pane/index.ts +0 -10
- package/doc/images/panes-for-classes.epgz +0 -0
- package/doc/images/panes-for-classes.svg +0 -609
- package/eslint.config.mjs +0 -34
- package/jest.config.js +0 -27
- package/jest.setup.ts +0 -4
- package/lib/RDFXMLPane.js +0 -59
- package/lib/RDFXMLPane.js.map +0 -1
- package/lib/argument/argumentPane.js +0 -62
- package/lib/argument/argumentPane.js.map +0 -1
- package/lib/attach/attachPane.js +0 -404
- package/lib/attach/attachPane.js.map +0 -1
- package/lib/audio/audioPane.js +0 -183
- package/lib/audio/audioPane.js.map +0 -1
- package/lib/classInstancePane.js +0 -93
- package/lib/classInstancePane.js.map +0 -1
- package/lib/dashboard/basicPreferences.js +0 -229
- package/lib/dashboard/basicPreferences.js.map +0 -1
- package/lib/dashboard/dashboardPane.js +0 -73
- package/lib/dashboard/dashboardPane.js.map +0 -1
- package/lib/dashboard/homepage.js +0 -86
- package/lib/dashboard/homepage.js.map +0 -1
- package/lib/dataContentPane.js +0 -259
- package/lib/dataContentPane.js.map +0 -1
- package/lib/defaultPane.js +0 -76
- package/lib/defaultPane.js.map +0 -1
- package/lib/dokieli/dokieliPane.js +0 -173
- package/lib/dokieli/dokieliPane.js.map +0 -1
- package/lib/dokieli/new.js +0 -9
- package/lib/dokieli/new.js.map +0 -1
- package/lib/form/pane.js +0 -186
- package/lib/form/pane.js.map +0 -1
- package/lib/global.d.js +0 -2
- package/lib/global.d.js.map +0 -1
- package/lib/home/homePane.js +0 -91
- package/lib/home/homePane.js.map +0 -1
- package/lib/humanReadablePane.js +0 -138
- package/lib/humanReadablePane.js.map +0 -1
- package/lib/imagePane.js +0 -71
- package/lib/imagePane.js.map +0 -1
- package/lib/index.js +0 -112
- package/lib/index.js.map +0 -1
- package/lib/internal/internalPane.js +0 -184
- package/lib/internal/internalPane.js.map +0 -1
- package/lib/mainPage/footer.js +0 -22
- package/lib/mainPage/footer.js.map +0 -1
- package/lib/mainPage/header.js +0 -152
- package/lib/mainPage/header.js.map +0 -1
- package/lib/mainPage/index.js +0 -42
- package/lib/mainPage/index.js.map +0 -1
- package/lib/microblogPane/microblogPane.js +0 -1032
- package/lib/microblogPane/microblogPane.js.map +0 -1
- package/lib/n3Pane.js +0 -57
- package/lib/n3Pane.js.map +0 -1
- package/lib/outline/context.js +0 -19
- package/lib/outline/context.js.map +0 -1
- package/lib/outline/manager.js +0 -2264
- package/lib/outline/manager.js.map +0 -1
- package/lib/outline/manager.test.d.ts +0 -2
- package/lib/outline/manager.test.d.ts.map +0 -1
- package/lib/outline/manager.test.js +0 -210
- package/lib/outline/manager.test.js.map +0 -1
- package/lib/outline/outlineIcons.js +0 -128
- package/lib/outline/outlineIcons.js.map +0 -1
- package/lib/outline/propertyViews.js +0 -44
- package/lib/outline/propertyViews.js.map +0 -1
- package/lib/outline/propertyViews.test.d.ts +0 -2
- package/lib/outline/propertyViews.test.d.ts.map +0 -1
- package/lib/outline/propertyViews.test.js +0 -27
- package/lib/outline/propertyViews.test.js.map +0 -1
- package/lib/outline/queryByExample.js +0 -286
- package/lib/outline/queryByExample.js.map +0 -1
- package/lib/outline/userInput.js +0 -1817
- package/lib/outline/userInput.js.map +0 -1
- package/lib/outline/viewAsImage.js +0 -17
- package/lib/outline/viewAsImage.js.map +0 -1
- package/lib/outline/viewAsMbox.js.map +0 -1
- package/lib/pad/padPane.js +0 -417
- package/lib/pad/padPane.js.map +0 -1
- package/lib/playlist/playlistPane.js +0 -125
- package/lib/playlist/playlistPane.js.map +0 -1
- package/lib/registerPanes.js +0 -146
- package/lib/registerPanes.js.map +0 -1
- package/lib/schedule/formsForSchedule.js +0 -8
- package/lib/schedule/formsForSchedule.js.map +0 -1
- package/lib/schedule/schedulePane.js +0 -895
- package/lib/schedule/schedulePane.js.map +0 -1
- package/lib/sharing/sharingPane.js +0 -49
- package/lib/sharing/sharingPane.js.map +0 -1
- package/lib/slideshow/slideshowPane.js +0 -84
- package/lib/slideshow/slideshowPane.js.map +0 -1
- package/lib/socialPane.js +0 -431
- package/lib/socialPane.js.map +0 -1
- package/lib/tabbed/tabbedPane.js +0 -72
- package/lib/tabbed/tabbedPane.js.map +0 -1
- package/lib/tableViewPane.js +0 -58
- package/lib/tableViewPane.js.map +0 -1
- package/lib/test-import-export/common.js +0 -12
- package/lib/test-import-export/common.js.map +0 -1
- package/lib/test-import-export/edit-importer.js +0 -25
- package/lib/test-import-export/edit-importer.js.map +0 -1
- package/lib/test-import-export/testImportExport.js +0 -2
- package/lib/test-import-export/testImportExport.js.map +0 -1
- package/lib/transaction/pane.js +0 -479
- package/lib/transaction/pane.js.map +0 -1
- package/lib/transaction/period.js +0 -325
- package/lib/transaction/period.js.map +0 -1
- package/lib/trip/tripPane.js +0 -176
- package/lib/trip/tripPane.js.map +0 -1
- package/lib/trustedApplications/trustedApplications.dom.js +0 -177
- package/lib/trustedApplications/trustedApplications.dom.js.map +0 -1
- package/lib/trustedApplications/trustedApplications.test.d.ts +0 -2
- package/lib/trustedApplications/trustedApplications.test.d.ts.map +0 -1
- package/lib/trustedApplications/trustedApplications.test.js +0 -64
- package/lib/trustedApplications/trustedApplications.test.js.map +0 -1
- package/lib/trustedApplications/trustedApplications.utils.js +0 -34
- package/lib/trustedApplications/trustedApplications.utils.js.map +0 -1
- package/lib/trustedApplications/trustedApplications.view.js +0 -87
- package/lib/trustedApplications/trustedApplications.view.js.map +0 -1
- package/lib/types.js +0 -6
- package/lib/types.js.map +0 -1
- package/lib/ui/pane.js +0 -148
- package/lib/ui/pane.js.map +0 -1
- package/lib/versionInfo.d.ts +0 -34
- package/lib/versionInfo.d.ts.map +0 -1
- package/lib/versionInfo.js +0 -39
- package/lib/versionInfo.js.map +0 -1
- package/lib/video/videoPane.js +0 -44
- package/lib/video/videoPane.js.map +0 -1
- package/src/RDFXMLPane.js +0 -60
- package/src/argument/argumentPane.js +0 -65
- package/src/argument/argument_icon_v04.jpg +0 -0
- package/src/argument/icon_argument.png +0 -0
- package/src/argument/transparentyingyang.png +0 -0
- package/src/attach/attachPane.js +0 -508
- package/src/attach/tbl-paperclip-128.png +0 -0
- package/src/attach/tbl-paperclip-22.png +0 -0
- package/src/attach/tbl-paperclip-22a.png +0 -0
- package/src/audio/audioPane.js +0 -197
- package/src/chatPreferencesForm.ttl +0 -12
- package/src/classInstancePane.js +0 -110
- package/src/dashboard/basicPreferences.ts +0 -201
- package/src/dashboard/dashboardPane.ts +0 -83
- package/src/dashboard/homepage.ts +0 -72
- package/src/dashboard/languages/codes.html +0 -8611
- package/src/dashboard/languages/codes.xml +0 -3563
- package/src/dashboard/languages/codes2.txt +0 -170
- package/src/dashboard/languages/foo +0 -70
- package/src/dashboard/languages/foo.ttl +0 -0
- package/src/dashboard/languages/get-language-names.sh +0 -12
- package/src/dashboard/ontologyData.ttl +0 -35
- package/src/dashboard/preferencesFormText.ttl +0 -18
- package/src/dataContentPane.js +0 -290
- package/src/defaultPane.js +0 -102
- package/src/dokieli/Makefile +0 -6
- package/src/dokieli/dokieliPane.js +0 -190
- package/src/dokieli/new.html +0 -30
- package/src/dokieli/new.js +0 -22
- package/src/form/form-22.png +0 -0
- package/src/form/form-b-22.png +0 -0
- package/src/form/form.graffle +0 -0
- package/src/form/form.png +0 -0
- package/src/form/pane.js +0 -217
- package/src/form/psuedocode-notes.txt +0 -57
- package/src/global.d.ts +0 -4
- package/src/home/homePane.ts +0 -72
- package/src/humanReadablePane.js +0 -150
- package/src/imagePane.js +0 -75
- package/src/index.ts +0 -71
- package/src/internal/internalPane.ts +0 -263
- package/src/mainPage/footer.ts +0 -19
- package/src/mainPage/header.ts +0 -79
- package/src/mainPage/index.ts +0 -20
- package/src/meeting/Makefile +0 -3
- package/src/meeting/test/meeting1/Actions/actions.ttl +0 -14
- package/src/meeting/test/meeting1/Actions/config.ttl +0 -16
- package/src/meeting/test/meeting1/Actions/state.ttl +0 -30
- package/src/meeting/test/meeting1/Schedule/details.ttl +0 -34
- package/src/meeting/test/meeting1/Schedule/details.ttl.acl +0 -20
- package/src/meeting/test/meeting1/Schedule/forms.ttl +0 -75
- package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +0 -20
- package/src/meeting/test/meeting1/Schedule/index.html +0 -72
- package/src/meeting/test/meeting1/Schedule/index.html.acl +0 -20
- package/src/meeting/test/meeting1/Schedule/results.ttl +0 -15
- package/src/meeting/test/meeting1/Schedule/results.ttl.acl +0 -20
- package/src/meeting/test/meeting1/SharedNotes/pad.ttl +0 -23
- package/src/meeting/test/meeting1/chat/chat.ttl +0 -1
- package/src/meeting/test/meeting1/details.ttl +0 -35
- package/src/meeting/test/meeting1/pad/pad.ttl +0 -16
- package/src/microblogPane/mbStyle.css +0 -267
- package/src/microblogPane/microblogPane.js +0 -1412
- package/src/n3Pane.js +0 -56
- package/src/outline/context.ts +0 -21
- package/src/outline/manager.js +0 -2384
- package/src/outline/manager.test.ts +0 -189
- package/src/outline/outlineIcons.js +0 -160
- package/src/outline/propertyViews.test.ts +0 -36
- package/src/outline/propertyViews.ts +0 -37
- package/src/outline/queryByExample.js +0 -296
- package/src/outline/userInput.js +0 -2373
- package/src/outline/viewAsImage.ts +0 -12
- package/src/outline/viewAsMbox.ts +0 -14
- package/src/pad/images/ColourOff.ai +2 -872
- package/src/pad/images/ColourOff.png +0 -0
- package/src/pad/images/ColourOn.ai +1 -935
- package/src/pad/images/ColourOn.png +0 -0
- package/src/pad/padPane.ts +0 -559
- package/src/playlist/playlistPane.js +0 -161
- package/src/registerPanes.js +0 -147
- package/src/schedule/Makefile +0 -6
- package/src/schedule/formsForSchedule.js +0 -117
- package/src/schedule/formsForSchedule.ttl +0 -115
- package/src/schedule/schedulePane.js +0 -1201
- package/src/sharing/sharingPane.ts +0 -49
- package/src/slideshow/slideshowPane.js +0 -80
- package/src/socialPane.js +0 -523
- package/src/style/tabbedtab.css +0 -1347
- package/src/tabbed/tabbedPane.ts +0 -60
- package/src/tableViewPane.js +0 -51
- package/src/test-import-export/common.js +0 -6
- package/src/test-import-export/edit-importer.js +0 -20
- package/src/test-import-export/testImportExport.js +0 -0
- package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
- package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/pane.js +0 -629
- package/src/transaction/period.js +0 -374
- package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
- package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
- package/src/trip/tripPane.js +0 -176
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -176
- package/src/trustedApplications/trustedApplications.dom.ts +0 -276
- package/src/trustedApplications/trustedApplications.test.ts +0 -82
- package/src/trustedApplications/trustedApplications.utils.ts +0 -51
- package/src/trustedApplications/trustedApplications.view.ts +0 -80
- package/src/types.ts +0 -34
- package/src/ui/22-builder.png +0 -0
- package/src/ui/builder.graffle +0 -0
- package/src/ui/builder.png +0 -0
- package/src/ui/builder2.png +0 -0
- package/src/ui/pane.js +0 -226
- package/src/versionInfo.ts +0 -32
- package/src/video/videoPane.js +0 -44
- package/timestamp.sh +0 -13
- package/travis/bumpversion.js +0 -29
- package/tsconfig.json +0 -78
- package/typings/raw-loader.d.ts +0 -4
- package/typings/solid-namespace/index.d.ts +0 -9
- package/webpack.config.js +0 -41
- /package/{lib → dist}/dashboard/basicPreferences.d.ts +0 -0
- /package/{lib → dist}/dashboard/basicPreferences.d.ts.map +0 -0
- /package/{lib → dist}/dashboard/dashboardPane.d.ts +0 -0
- /package/{lib → dist}/dashboard/dashboardPane.d.ts.map +0 -0
- /package/{lib → dist}/dashboard/homepage.d.ts +0 -0
- /package/{lib → dist}/dashboard/homepage.d.ts.map +0 -0
- /package/{lib → dist}/home/homePane.d.ts +0 -0
- /package/{lib → dist}/home/homePane.d.ts.map +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
- /package/{lib → dist}/index.d.ts.map +0 -0
- /package/{lib → dist}/internal/internalPane.d.ts +0 -0
- /package/{lib → dist}/internal/internalPane.d.ts.map +0 -0
- /package/{lib → dist}/mainPage/footer.d.ts +0 -0
- /package/{lib → dist}/mainPage/footer.d.ts.map +0 -0
- /package/{lib → dist}/mainPage/header.d.ts +0 -0
- /package/{lib → dist}/mainPage/header.d.ts.map +0 -0
- /package/{lib → dist}/mainPage/index.d.ts +0 -0
- /package/{lib → dist}/outline/context.d.ts +0 -0
- /package/{lib → dist}/outline/context.d.ts.map +0 -0
- /package/{lib → dist}/outline/propertyViews.d.ts +0 -0
- /package/{lib → dist}/outline/propertyViews.d.ts.map +0 -0
- /package/{lib → dist}/outline/viewAsImage.d.ts +0 -0
- /package/{lib → dist}/outline/viewAsImage.d.ts.map +0 -0
- /package/{lib → dist}/outline/viewAsMbox.d.ts +0 -0
- /package/{lib → dist}/outline/viewAsMbox.d.ts.map +0 -0
- /package/{lib → dist}/pad/padPane.d.ts +0 -0
- /package/{lib → dist}/pad/padPane.d.ts.map +0 -0
- /package/{lib → dist}/sharing/sharingPane.d.ts +0 -0
- /package/{lib → dist}/sharing/sharingPane.d.ts.map +0 -0
- /package/{lib → dist}/tabbed/tabbedPane.d.ts +0 -0
- /package/{lib → dist}/tabbed/tabbedPane.d.ts.map +0 -0
- /package/{lib → dist}/trustedApplications/trustedApplications.dom.d.ts +0 -0
- /package/{lib → dist}/trustedApplications/trustedApplications.dom.d.ts.map +0 -0
- /package/{lib → dist}/trustedApplications/trustedApplications.utils.d.ts +0 -0
- /package/{lib → dist}/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
- /package/{lib → dist}/trustedApplications/trustedApplications.view.d.ts +0 -0
- /package/{lib → dist}/trustedApplications/trustedApplications.view.d.ts.map +0 -0
- /package/{lib → dist}/types.d.ts +0 -0
- /package/{lib → dist}/types.d.ts.map +0 -0
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.QuerySource = QuerySource;
|
|
8
|
-
exports.makeQueryRow = makeQueryRow;
|
|
9
|
-
exports.viewAndSaveQuery = viewAndSaveQuery;
|
|
10
|
-
var _solidLogic = require("solid-logic");
|
|
11
|
-
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
-
/* istanbul ignore file */
|
|
14
|
-
// The query-by-example functionality in the tabulator
|
|
15
|
-
// was the ability to expore a bit of the web in outline mode,
|
|
16
|
-
// select a ceratain set of fields in the tree,
|
|
17
|
-
// then pres "find all" which would then generte a SPARQL query
|
|
18
|
-
// to find all other places which had the same pattern.
|
|
19
|
-
// Fields could be optional by pressing th ewhite optoional button
|
|
20
|
-
|
|
21
|
-
var optionalSubqueriesIndex = [];
|
|
22
|
-
function predParentOf(node) {
|
|
23
|
-
var n = node;
|
|
24
|
-
while (true) {
|
|
25
|
-
if (n.getAttribute('predTR')) {
|
|
26
|
-
return n;
|
|
27
|
-
} else if (n.previousSibling && n.previousSibling.nodeName === 'TR') {
|
|
28
|
-
n = n.previousSibling;
|
|
29
|
-
} else {
|
|
30
|
-
console.log('Could not find predParent');
|
|
31
|
-
return node;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function makeQueryRow(q, tr, constraint) {
|
|
36
|
-
// predtr = predParentOf(tr)
|
|
37
|
-
// var nodes = tr.childNodes
|
|
38
|
-
// var n = tr.childNodes.length
|
|
39
|
-
var inverse = tr.AJAR_inverse;
|
|
40
|
-
// var hasVar = 0
|
|
41
|
-
var parentVar, level, pat;
|
|
42
|
-
function makeRDFStatement(freeVar, parent) {
|
|
43
|
-
if (inverse) {
|
|
44
|
-
return new UI.rdf.Statement(freeVar, st.predicate, parent);
|
|
45
|
-
} else {
|
|
46
|
-
return new UI.rdf.Statement(parent, st.predicate, freeVar);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
var optionalSubqueryIndex = null;
|
|
50
|
-
for (level = tr.parentNode; level; level = level.parentNode) {
|
|
51
|
-
if (typeof level.AJAR_statement !== 'undefined') {
|
|
52
|
-
// level.AJAR_statement
|
|
53
|
-
level.setAttribute('bla', level.AJAR_statement); // @@? -timbl
|
|
54
|
-
// UI.log.debug("Parent TR statement="+level.AJAR_statement + ", var=" + level.AJAR_variable)
|
|
55
|
-
/* for(let c=0;c<level.parentNode.childNodes.length;c++) //This makes sure the same variable is used for a subject
|
|
56
|
-
if(level.parentNode.childNodes[c].AJAR_variable)
|
|
57
|
-
level.AJAR_variable = level.parentNode.childNodes[c].AJAR_variable; */
|
|
58
|
-
if (!level.AJAR_variable) {
|
|
59
|
-
makeQueryRow(q, level);
|
|
60
|
-
}
|
|
61
|
-
parentVar = level.AJAR_variable;
|
|
62
|
-
var predLevel = predParentOf(level);
|
|
63
|
-
if (predLevel.getAttribute('optionalSubqueriesIndex')) {
|
|
64
|
-
optionalSubqueryIndex = predLevel.getAttribute('optionalSubqueriesIndex');
|
|
65
|
-
pat = optionalSubqueriesIndex[optionalSubqueryIndex];
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
if (!pat) {
|
|
71
|
-
pat = q.pat;
|
|
72
|
-
}
|
|
73
|
-
var predtr = predParentOf(tr);
|
|
74
|
-
// /////OPTIONAL KLUDGE///////////
|
|
75
|
-
var opt = predtr.getAttribute('optional');
|
|
76
|
-
if (!opt) {
|
|
77
|
-
if (optionalSubqueryIndex) {
|
|
78
|
-
predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueryIndex);
|
|
79
|
-
} else {
|
|
80
|
-
predtr.removeAttribute('optionalSubqueriesIndex');
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (opt) {
|
|
84
|
-
var optForm = _solidLogic.store.formula();
|
|
85
|
-
optionalSubqueriesIndex.push(optForm);
|
|
86
|
-
predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueriesIndex.length - 1);
|
|
87
|
-
pat.optional.push(optForm);
|
|
88
|
-
pat = optForm;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// //////////////////////////////
|
|
92
|
-
|
|
93
|
-
var st = tr.AJAR_statement;
|
|
94
|
-
var constraintVar = tr.AJAR_inverse ? st.subject : st.object; // this is only used for constraints
|
|
95
|
-
var hasParent = true;
|
|
96
|
-
if (constraintVar.isBlank && constraint) {
|
|
97
|
-
window.alert('You cannot constrain a query with a blank node. No constraint will be added.');
|
|
98
|
-
}
|
|
99
|
-
if (!parentVar) {
|
|
100
|
-
hasParent = false;
|
|
101
|
-
parentVar = inverse ? st.object : st.subject; // if there is no parents, uses the sub/obj
|
|
102
|
-
}
|
|
103
|
-
// UI.log.debug('Initial variable: '+tr.AJAR_variable)
|
|
104
|
-
var v = tr.AJAR_variable ? tr.AJAR_variable : _solidLogic.store.variable(UI.utils.newVariableName());
|
|
105
|
-
q.vars.push(v);
|
|
106
|
-
v.label = hasParent ? parentVar.label : UI.utils.label(parentVar);
|
|
107
|
-
v.label += ' ' + UI.utils.predicateLabelForXML(st.predicate, inverse);
|
|
108
|
-
var pattern = makeRDFStatement(v, parentVar);
|
|
109
|
-
// alert(pattern)
|
|
110
|
-
v.label = v.label.slice(0, 1).toUpperCase() + v.label.slice(1); // init cap
|
|
111
|
-
|
|
112
|
-
// See ../rdf/sparql.js
|
|
113
|
-
// This should only work on literals but doesn't.
|
|
114
|
-
function ConstraintEqualTo(value) {
|
|
115
|
-
this.describe = function (varstr) {
|
|
116
|
-
return varstr + ' = ' + value.toNT();
|
|
117
|
-
};
|
|
118
|
-
this.test = function (term) {
|
|
119
|
-
return value.sameTerm(term);
|
|
120
|
-
};
|
|
121
|
-
return this;
|
|
122
|
-
}
|
|
123
|
-
if (constraint) {
|
|
124
|
-
// binds the constrained variable to its selected value
|
|
125
|
-
pat.constraints[v] = new ConstraintEqualTo(constraintVar);
|
|
126
|
-
}
|
|
127
|
-
UI.log.info('Pattern: ' + pattern);
|
|
128
|
-
pattern.tr = tr;
|
|
129
|
-
tr.AJAR_pattern = pattern; // Cross-link UI and query line
|
|
130
|
-
tr.AJAR_variable = v;
|
|
131
|
-
// UI.log.debug('Final variable: '+tr.AJAR_variable)
|
|
132
|
-
UI.log.debug('Query pattern: ' + pattern);
|
|
133
|
-
pat.statements.push(pattern);
|
|
134
|
-
return v;
|
|
135
|
-
} // makeQueryRow
|
|
136
|
-
|
|
137
|
-
function saveQuery(selection, qs) {
|
|
138
|
-
// var qs = outline.qs // @@
|
|
139
|
-
var q = new UI.rdf.Query();
|
|
140
|
-
var n = selection.length;
|
|
141
|
-
var i, sel, st, tr;
|
|
142
|
-
for (i = 0; i < n; i++) {
|
|
143
|
-
sel = selection[i];
|
|
144
|
-
tr = sel.parentNode;
|
|
145
|
-
st = tr.AJAR_statement;
|
|
146
|
-
UI.log.debug('Statement ' + st);
|
|
147
|
-
if (sel.getAttribute('class').indexOf('pred') >= 0) {
|
|
148
|
-
UI.log.info(' We have a predicate');
|
|
149
|
-
makeQueryRow(q, tr);
|
|
150
|
-
}
|
|
151
|
-
if (sel.getAttribute('class').indexOf('obj') >= 0) {
|
|
152
|
-
UI.log.info(' We have an object');
|
|
153
|
-
makeQueryRow(q, tr, true);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
qs.addQuery(q);
|
|
157
|
-
function resetOutliner(pat) {
|
|
158
|
-
var n = pat.statements.length;
|
|
159
|
-
var pattern, tr;
|
|
160
|
-
for (var _i = 0; _i < n; _i++) {
|
|
161
|
-
pattern = pat.statements[_i];
|
|
162
|
-
tr = pattern.tr;
|
|
163
|
-
// UI.log.debug('tr: ' + tr.AJAR_statement);
|
|
164
|
-
if (typeof tr !== 'undefined') {
|
|
165
|
-
tr.AJAR_pattern = null; // TODO: is this == to whats in current version?
|
|
166
|
-
tr.AJAR_variable = null;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
for (var x in pat.optional) {
|
|
170
|
-
resetOutliner(pat.optional[x]);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
resetOutliner(q.pat);
|
|
174
|
-
// NextVariable=0;
|
|
175
|
-
return q;
|
|
176
|
-
} // saveQuery
|
|
177
|
-
|
|
178
|
-
// When the user asks for all list of all matching parts of the data
|
|
179
|
-
//
|
|
180
|
-
function viewAndSaveQuery(outline, selection) {
|
|
181
|
-
var qs = outline.qs;
|
|
182
|
-
UI.log.info('outline.doucment is now ' + outline.document.location);
|
|
183
|
-
var q = saveQuery(selection, qs);
|
|
184
|
-
/*
|
|
185
|
-
if (tabulator.isExtension) {
|
|
186
|
-
// tabulator.drawInBestView(q)
|
|
187
|
-
} else
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
for (var i = 0; i < qs.listeners.length; i++) {
|
|
191
|
-
qs.listeners[i].getActiveView().view.drawQuery(q);
|
|
192
|
-
qs.listeners[i].updateQueryControls(qs.listeners[i].getActiveView());
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* The QuerySource object stores a set of listeners and a set of queries.
|
|
198
|
-
* It keeps the listeners aware of those queries that the source currently
|
|
199
|
-
* contains, and it is then up to the listeners to decide what to do with
|
|
200
|
-
* those queries in terms of displays.
|
|
201
|
-
* Not used 2010-08 -- TimBL
|
|
202
|
-
* @class QuerySource
|
|
203
|
-
* @author jambo
|
|
204
|
-
*/
|
|
205
|
-
|
|
206
|
-
function QuerySource() {
|
|
207
|
-
/**
|
|
208
|
-
* stores all of the queries currently held by this source,
|
|
209
|
-
* indexed by ID number.
|
|
210
|
-
*/
|
|
211
|
-
this.queries = [];
|
|
212
|
-
/**
|
|
213
|
-
* stores the listeners for a query object.
|
|
214
|
-
* @see TabbedContainer
|
|
215
|
-
*/
|
|
216
|
-
this.listeners = [];
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* add a Query object to the query source--It will be given an ID number
|
|
220
|
-
* and a name, if it doesn't already have one. This subsequently adds the
|
|
221
|
-
* query to all of the listeners the QuerySource knows about.
|
|
222
|
-
*/
|
|
223
|
-
this.addQuery = function (q) {
|
|
224
|
-
var i;
|
|
225
|
-
if (q.name === null || q.name === '') {
|
|
226
|
-
q.name = 'Query #' + (this.queries.length + 1);
|
|
227
|
-
}
|
|
228
|
-
q.id = this.queries.length;
|
|
229
|
-
this.queries.push(q);
|
|
230
|
-
for (i = 0; i < this.listeners.length; i++) {
|
|
231
|
-
if (this.listeners[i] !== null) {
|
|
232
|
-
this.listeners[i].addQuery(q);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Remove a Query object from the source. Tells all listeners to also
|
|
239
|
-
* remove the query.
|
|
240
|
-
*/
|
|
241
|
-
this.removeQuery = function (q) {
|
|
242
|
-
var i;
|
|
243
|
-
for (i = 0; i < this.listeners.length; i++) {
|
|
244
|
-
if (this.listeners[i] !== null) {
|
|
245
|
-
this.listeners[i].removeQuery(q);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
if (this.queries[q.id] !== null) {
|
|
249
|
-
delete this.queries[q.id];
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* adds a "Listener" to this QuerySource - that is, an object
|
|
255
|
-
* which is capable of both adding and removing queries.
|
|
256
|
-
* Currently, only the TabbedContainer class is added.
|
|
257
|
-
* also puts all current queries into the listener to be used.
|
|
258
|
-
*/
|
|
259
|
-
this.addListener = function (listener) {
|
|
260
|
-
var i;
|
|
261
|
-
this.listeners.push(listener);
|
|
262
|
-
for (i = 0; i < this.queries.length; i++) {
|
|
263
|
-
if (this.queries[i] !== null) {
|
|
264
|
-
listener.addQuery(this.queries[i]);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* removes listener from the array of listeners, if it exists! Also takes
|
|
270
|
-
* all of the queries from this source out of the listener.
|
|
271
|
-
*/
|
|
272
|
-
this.removeListener = function (listener) {
|
|
273
|
-
var i;
|
|
274
|
-
for (i = 0; i < this.queries.length; i++) {
|
|
275
|
-
if (this.queries[i] !== null) {
|
|
276
|
-
listener.removeQuery(this.queries[i]);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
for (i = 0; i < this.listeners.length; i++) {
|
|
280
|
-
if (this.listeners[i] === listener) {
|
|
281
|
-
delete this.listeners[i];
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
//# sourceMappingURL=queryByExample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queryByExample.js","names":["_solidLogic","require","UI","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","optionalSubqueriesIndex","predParentOf","node","getAttribute","previousSibling","nodeName","console","log","makeQueryRow","q","tr","constraint","inverse","AJAR_inverse","parentVar","level","pat","makeRDFStatement","freeVar","parent","rdf","Statement","st","predicate","optionalSubqueryIndex","parentNode","AJAR_statement","setAttribute","AJAR_variable","predLevel","predtr","opt","removeAttribute","optForm","store","formula","push","length","optional","constraintVar","subject","object","hasParent","isBlank","window","alert","v","variable","utils","newVariableName","vars","label","predicateLabelForXML","pattern","slice","toUpperCase","ConstraintEqualTo","value","describe","varstr","toNT","test","term","sameTerm","constraints","info","AJAR_pattern","debug","statements","saveQuery","selection","qs","Query","sel","indexOf","addQuery","resetOutliner","x","viewAndSaveQuery","outline","document","location","listeners","getActiveView","view","drawQuery","updateQueryControls","QuerySource","queries","name","id","removeQuery","addListener","listener","removeListener"],"sources":["../../src/outline/queryByExample.js"],"sourcesContent":["/* istanbul ignore file */\n// The query-by-example functionality in the tabulator\n// was the ability to expore a bit of the web in outline mode,\n// select a ceratain set of fields in the tree,\n// then pres \"find all\" which would then generte a SPARQL query\n// to find all other places which had the same pattern.\n// Fields could be optional by pressing th ewhite optoional button\n\nimport { store } from 'solid-logic'\nimport * as UI from 'solid-ui'\n\nconst optionalSubqueriesIndex = []\n\nfunction predParentOf (node) {\n let n = node\n while (true) {\n if (n.getAttribute('predTR')) {\n return n\n } else if (n.previousSibling && n.previousSibling.nodeName === 'TR') {\n n = n.previousSibling\n } else {\n console.log('Could not find predParent')\n return node\n }\n }\n}\n\nexport function makeQueryRow (q, tr, constraint) {\n // predtr = predParentOf(tr)\n // var nodes = tr.childNodes\n // var n = tr.childNodes.length\n const inverse = tr.AJAR_inverse\n // var hasVar = 0\n let parentVar, level, pat\n\n function makeRDFStatement (freeVar, parent) {\n if (inverse) {\n return new UI.rdf.Statement(freeVar, st.predicate, parent)\n } else {\n return new UI.rdf.Statement(parent, st.predicate, freeVar)\n }\n }\n\n let optionalSubqueryIndex = null\n\n for (level = tr.parentNode; level; level = level.parentNode) {\n if (typeof level.AJAR_statement !== 'undefined') {\n // level.AJAR_statement\n level.setAttribute('bla', level.AJAR_statement) // @@? -timbl\n // UI.log.debug(\"Parent TR statement=\"+level.AJAR_statement + \", var=\" + level.AJAR_variable)\n /* for(let c=0;c<level.parentNode.childNodes.length;c++) //This makes sure the same variable is used for a subject\n if(level.parentNode.childNodes[c].AJAR_variable)\n level.AJAR_variable = level.parentNode.childNodes[c].AJAR_variable; */\n if (!level.AJAR_variable) {\n makeQueryRow(q, level)\n }\n parentVar = level.AJAR_variable\n const predLevel = predParentOf(level)\n if (predLevel.getAttribute('optionalSubqueriesIndex')) {\n optionalSubqueryIndex = predLevel.getAttribute(\n 'optionalSubqueriesIndex'\n )\n pat = optionalSubqueriesIndex[optionalSubqueryIndex]\n }\n break\n }\n }\n\n if (!pat) {\n pat = q.pat\n }\n\n const predtr = predParentOf(tr)\n // /////OPTIONAL KLUDGE///////////\n const opt = predtr.getAttribute('optional')\n if (!opt) {\n if (optionalSubqueryIndex) {\n predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueryIndex)\n } else {\n predtr.removeAttribute('optionalSubqueriesIndex')\n }\n }\n if (opt) {\n const optForm = store.formula()\n optionalSubqueriesIndex.push(optForm)\n predtr.setAttribute(\n 'optionalSubqueriesIndex',\n optionalSubqueriesIndex.length - 1\n )\n pat.optional.push(optForm)\n pat = optForm\n }\n\n // //////////////////////////////\n\n const st = tr.AJAR_statement\n\n const constraintVar = tr.AJAR_inverse ? st.subject : st.object // this is only used for constraints\n let hasParent = true\n if (constraintVar.isBlank && constraint) {\n window.alert(\n 'You cannot constrain a query with a blank node. No constraint will be added.'\n )\n }\n if (!parentVar) {\n hasParent = false\n parentVar = inverse ? st.object : st.subject // if there is no parents, uses the sub/obj\n }\n // UI.log.debug('Initial variable: '+tr.AJAR_variable)\n const v = tr.AJAR_variable\n ? tr.AJAR_variable\n : store.variable(UI.utils.newVariableName())\n q.vars.push(v)\n v.label = hasParent ? parentVar.label : UI.utils.label(parentVar)\n v.label += ' ' + UI.utils.predicateLabelForXML(st.predicate, inverse)\n const pattern = makeRDFStatement(v, parentVar)\n // alert(pattern)\n v.label = v.label.slice(0, 1).toUpperCase() + v.label.slice(1) // init cap\n\n // See ../rdf/sparql.js\n // This should only work on literals but doesn't.\n function ConstraintEqualTo (value) {\n this.describe = function (varstr) {\n return varstr + ' = ' + value.toNT()\n }\n this.test = function (term) {\n return value.sameTerm(term)\n }\n return this\n }\n\n if (constraint) {\n // binds the constrained variable to its selected value\n pat.constraints[v] = new ConstraintEqualTo(constraintVar)\n }\n UI.log.info('Pattern: ' + pattern)\n pattern.tr = tr\n tr.AJAR_pattern = pattern // Cross-link UI and query line\n tr.AJAR_variable = v\n // UI.log.debug('Final variable: '+tr.AJAR_variable)\n UI.log.debug('Query pattern: ' + pattern)\n pat.statements.push(pattern)\n return v\n} // makeQueryRow\n\nfunction saveQuery (selection, qs) {\n // var qs = outline.qs // @@\n const q = new UI.rdf.Query()\n const n = selection.length\n let i, sel, st, tr\n for (i = 0; i < n; i++) {\n sel = selection[i]\n tr = sel.parentNode\n st = tr.AJAR_statement\n UI.log.debug('Statement ' + st)\n if (sel.getAttribute('class').indexOf('pred') >= 0) {\n UI.log.info(' We have a predicate')\n makeQueryRow(q, tr)\n }\n if (sel.getAttribute('class').indexOf('obj') >= 0) {\n UI.log.info(' We have an object')\n makeQueryRow(q, tr, true)\n }\n }\n qs.addQuery(q)\n\n function resetOutliner (pat) {\n const n = pat.statements.length\n let pattern, tr\n for (let i = 0; i < n; i++) {\n pattern = pat.statements[i]\n tr = pattern.tr\n // UI.log.debug('tr: ' + tr.AJAR_statement);\n if (typeof tr !== 'undefined') {\n tr.AJAR_pattern = null // TODO: is this == to whats in current version?\n tr.AJAR_variable = null\n }\n }\n for (const x in pat.optional) {\n resetOutliner(pat.optional[x])\n }\n }\n resetOutliner(q.pat)\n // NextVariable=0;\n return q\n} // saveQuery\n\n// When the user asks for all list of all matching parts of the data\n//\nexport function viewAndSaveQuery (outline, selection) {\n const qs = outline.qs\n UI.log.info('outline.doucment is now ' + outline.document.location)\n const q = saveQuery(selection, qs)\n /*\n if (tabulator.isExtension) {\n // tabulator.drawInBestView(q)\n } else\n */\n\n for (let i = 0; i < qs.listeners.length; i++) {\n qs.listeners[i].getActiveView().view.drawQuery(q)\n qs.listeners[i].updateQueryControls(qs.listeners[i].getActiveView())\n }\n}\n\n/**\n * The QuerySource object stores a set of listeners and a set of queries.\n * It keeps the listeners aware of those queries that the source currently\n * contains, and it is then up to the listeners to decide what to do with\n * those queries in terms of displays.\n * Not used 2010-08 -- TimBL\n * @class QuerySource\n * @author jambo\n */\n\nexport function QuerySource () {\n /**\n * stores all of the queries currently held by this source,\n * indexed by ID number.\n */\n this.queries = []\n /**\n * stores the listeners for a query object.\n * @see TabbedContainer\n */\n this.listeners = []\n\n /**\n * add a Query object to the query source--It will be given an ID number\n * and a name, if it doesn't already have one. This subsequently adds the\n * query to all of the listeners the QuerySource knows about.\n */\n this.addQuery = function (q) {\n let i\n if (q.name === null || q.name === '') {\n q.name = 'Query #' + (this.queries.length + 1)\n }\n q.id = this.queries.length\n this.queries.push(q)\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] !== null) {\n this.listeners[i].addQuery(q)\n }\n }\n }\n\n /**\n * Remove a Query object from the source. Tells all listeners to also\n * remove the query.\n */\n this.removeQuery = function (q) {\n let i\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] !== null) {\n this.listeners[i].removeQuery(q)\n }\n }\n if (this.queries[q.id] !== null) {\n delete this.queries[q.id]\n }\n }\n\n /**\n * adds a \"Listener\" to this QuerySource - that is, an object\n * which is capable of both adding and removing queries.\n * Currently, only the TabbedContainer class is added.\n * also puts all current queries into the listener to be used.\n */\n this.addListener = function (listener) {\n let i\n this.listeners.push(listener)\n for (i = 0; i < this.queries.length; i++) {\n if (this.queries[i] !== null) {\n listener.addQuery(this.queries[i])\n }\n }\n }\n /**\n * removes listener from the array of listeners, if it exists! Also takes\n * all of the queries from this source out of the listener.\n */\n this.removeListener = function (listener) {\n let i\n for (i = 0; i < this.queries.length; i++) {\n if (this.queries[i] !== null) {\n listener.removeQuery(this.queries[i])\n }\n }\n\n for (i = 0; i < this.listeners.length; i++) {\n if (this.listeners[i] === listener) {\n delete this.listeners[i]\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;AAQA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA8B,SAAAE,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,wBAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBA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