Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab1 #41

Open
wants to merge 234 commits into
base: AlexSosnin
Choose a base branch
from
Open

lab1 #41

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
0770a7e
Hello Dolgan!
lostmap Feb 27, 2019
117c650
oleg privet
ciganeshima Mar 2, 2019
9a98015
Update App.js
ciganeshima Mar 2, 2019
f4f7267
new
ciganeshima Mar 2, 2019
f3b59b3
Merge branch 'ciganeshima' of https://github.com/agentlab/rdf-scheme-…
ciganeshima Mar 2, 2019
f884807
up
ciganeshima Mar 2, 2019
c223c04
Реализована форма Summary
Enfaseel Mar 6, 2019
fa730fe
https://github.com/agentlab/rdf-scheme-editor/issues/2 задача #2
Enfaseel Mar 6, 2019
5d46cb1
https://github.com/agentlab/rdf-scheme-editor/issues/10 задача #10
Mar 6, 2019
89cd8e0
Merge pull request #17 from agentlab/Summary
amivanoff Mar 6, 2019
67c4f16
https://github.com/agentlab/rdf-scheme-editor/issues/10 задача #10
Michael-larin Mar 6, 2019
e8c942d
https://github.com/agentlab/rdf-scheme-editor/issues/4 #4
Defasium Mar 6, 2019
c7502ca
Merge pull request #18 from agentlab/SystemInfo
amivanoff Mar 6, 2019
90d6796
Форматирование исправлено, данные вынесены из формы наружу #4
Defasium Mar 6, 2019
88f80d7
https://github.com/agentlab/rdf-scheme-editor/issues/3 #3
dariasivochka Mar 6, 2019
c56e63c
new
ciganeshima Mar 6, 2019
ac6c71f
new
ciganeshima Mar 6, 2019
ce8c76a
new
ciganeshima Mar 6, 2019
0f74e78
try
ciganeshima Mar 6, 2019
80dada1
https://github.com/agentlab/rdf-scheme-editor/issues/9
ChinukB12 Mar 7, 2019
8a1cf3b
https://github.com/agentlab/rdf-scheme-editor/issues/8
BlackOwl99 Mar 7, 2019
f887ebb
trying to submit
ciganeshima Mar 8, 2019
4f921fe
rename
ciganeshima Mar 8, 2019
3cdbd0b
Update
ciganeshima Mar 8, 2019
7018129
update
ciganeshima Mar 8, 2019
accd8a2
update
ciganeshima Mar 8, 2019
dfb362f
update
ciganeshima Mar 8, 2019
8dc381b
Back to previous version
ciganeshima Mar 8, 2019
6ea977e
delete
ciganeshima Mar 8, 2019
664b3d1
https://github.com/agentlab/rdf-scheme-editor/issues/5 #5
akhabutdinova Mar 10, 2019
cf4a7bf
Merge branch 'master' of https://github.com/agentlab/rdf-scheme-edito…
ciganeshima Mar 10, 2019
5083198
new
ciganeshima Mar 10, 2019
500801d
create new file
ciganeshima Mar 10, 2019
56986a6
upd
ciganeshima Mar 10, 2019
16d010d
try
ciganeshima Mar 10, 2019
e65dd71
Delete Summary.stories.js
ciganeshima Mar 10, 2019
d7b141d
Delete SystemInformation.stories.js
ciganeshima Mar 10, 2019
31dc596
Delete app.js
ciganeshima Mar 10, 2019
e01e61a
Update App.js
ciganeshima Mar 10, 2019
2a657cf
Update index.js
ciganeshima Mar 10, 2019
f844842
Add files via upload
ciganeshima Mar 10, 2019
20639d3
Update package.json
ciganeshima Mar 10, 2019
bb65535
Update CreateRequirement.js
ciganeshima Mar 10, 2019
15f5471
Update CreateRequirement.js
ciganeshima Mar 10, 2019
0ec4e7b
Update CreateRequirement.js
ciganeshima Mar 10, 2019
7df2711
Высылаю задание 15.
sobolevma Mar 10, 2019
74198e9
Update CreateRequirement.js
ciganeshima Mar 10, 2019
c4d2b8b
Update CreateRequirement.js
ciganeshima Mar 10, 2019
522f1c6
[ADD] complite issue #1
IvanShport Mar 11, 2019
cccb755
#11
ciganeshima Mar 11, 2019
0bfaee3
Delete CreateRequirement.js
ciganeshima Mar 11, 2019
3812c1c
fixed css file
ciganeshima Mar 12, 2019
604099d
Merge branch 'ciganeshima' of https://github.com/agentlab/rdf-scheme-…
ciganeshima Mar 12, 2019
e9cb452
Create role assignments
abdullinams Mar 12, 2019
433860d
Create roles permissions
lizdib Mar 12, 2019
f573664
Добавлен пример получения списка RDF репозиториев с сервера. настроен…
amivanoff Mar 13, 2019
5926cb8
complite homework #7
Trang5396 Mar 15, 2019
99814fa
Merge pull request #19 from agentlab/ishkov
amivanoff Mar 20, 2019
b659f82
Merge pull request #24 from agentlab/Olga
amivanoff Mar 20, 2019
e4b703e
[FIX] add insert into form from array
IvanShport Mar 20, 2019
c074a49
Merge branch 'master' of https://github.com/agentlab/rdf-scheme-edito…
dariasivochka Mar 20, 2019
850c4cf
Merge pull request #26 from agentlab/lab1
amivanoff Mar 20, 2019
2bd5878
Норм options
dariasivochka Mar 20, 2019
89de1fe
update lab for issue #6
Mar 20, 2019
2617c5c
Merge pull request #20 from agentlab/Namespace
amivanoff Mar 20, 2019
7880497
ostavil chujoy file v pokoye
Mar 20, 2019
52ca8bd
[FIX] rename story
IvanShport Mar 20, 2019
c67528c
[FIX] rename file name hello -> newRepository
IvanShport Mar 20, 2019
604c4c0
Merge pull request #25 from agentlab/Bekhbudov
amivanoff Mar 20, 2019
bf87f62
update after delete
Trang5396 Mar 20, 2019
9c76c52
Merge pull request #30 from agentlab/IvanShport#1
amivanoff Mar 20, 2019
f97ebe3
Высылаю файл с исправленным форматиррованием. Задание 15
sobolevma Mar 20, 2019
f58c526
update later
Trang5396 Mar 20, 2019
e036e00
file restored
Trang5396 Mar 20, 2019
21d833d
Merge pull request #43 from agentlab/Trang#7
amivanoff Mar 20, 2019
a9a9fb9
Высылаю файл с исправленным названием
sobolevma Mar 20, 2019
a1632a1
Merge pull request #28 from agentlab/SobolevMaxim
amivanoff Mar 20, 2019
4ac446d
Отформатировано js
ChinukB12 Mar 27, 2019
adee6a2
Чекайте
ChinukB12 Mar 27, 2019
05dfe0f
Merge pull request #23 from agentlab/Alexey
amivanoff Mar 27, 2019
7dd4a0f
fix code #2
IvanShport Apr 2, 2019
3e35525
remove hello stories and fix controls
IvanShport Apr 2, 2019
5c8cdf7
Modify AddRDF form
KhrapovSergey Apr 10, 2019
4777fde
Correct format
KhrapovSergey Apr 10, 2019
8e084b5
Correct format
KhrapovSergey Apr 10, 2019
5fcf52f
Merge pull request #49 from agentlab/feat/modif
amivanoff Apr 10, 2019
06365ae
all components moved to /components, deps fix
amivanoff Apr 17, 2019
a4ee2f5
Various settings
amivanoff Apr 17, 2019
8a8a1a6
Ошибка сборки, пример теста
amivanoff Apr 17, 2019
e72eee3
fix name story
IvanShport Apr 17, 2019
92a62ac
Merge pull request #42 from agentlab/Epifanova
amivanoff Apr 17, 2019
3a2fff9
Test refactored
amivanoff Apr 17, 2019
e81761b
Merge branch 'master' of https://github.com/agentlab/rdf-scheme-editor
amivanoff Apr 17, 2019
32ac26f
Merge pull request #48 from agentlab/AlexSosnin
amivanoff Apr 17, 2019
534e75e
Исправила дополнительное задание
TatianaShadchina Apr 17, 2019
d915555
kvhange
AnzorBmstu Apr 17, 2019
2cf00d5
Исправила
TatianaShadchina Apr 17, 2019
a966522
Merge remote-tracking branch 'agentlab/baisarov1Iss'
amivanoff Apr 17, 2019
7ec4b1e
Merge pull request #68 from agentlab/TaniaTania
amivanoff Apr 17, 2019
50111f7
Merge
lizdib Apr 24, 2019
469559b
Merge
lizdib Apr 24, 2019
55db8a8
Рефакторинг и проблемы сборки
amivanoff Apr 24, 2019
76db489
Merge pull request #34 from agentlab/abd
amivanoff Apr 24, 2019
12c0f40
Отформатирован весь код
amivanoff Apr 24, 2019
ee782ed
Merge branch 'master' of https://github.com/agentlab/rdf-scheme-editor
amivanoff Apr 24, 2019
1af989c
Отформатирован весь код
amivanoff Apr 24, 2019
81ed9b6
Realisation of Develop in Unified Views
const-er May 10, 2019
e55cefe
Add create links form
May 13, 2019
bcf787f
Code cleanup
May 14, 2019
422c524
Roles permissions form modification
lizdib May 14, 2019
4255388
Merge pull request #96 from agentlab/createLinks
amivanoff May 15, 2019
33f9d8a
missing css fix
amivanoff May 15, 2019
5d01218
Merge branch 'master' into ciganeshima
ciganeshima May 15, 2019
027dd5b
Merge pull request #31 from agentlab/ciganeshima
amivanoff May 15, 2019
86dde80
Merge branch 'master' into eliza
amivanoff May 15, 2019
5c0f4b2
Merge pull request #97 from agentlab/eliza
amivanoff May 15, 2019
20b3ab0
Develop in Unified view
const-er May 15, 2019
ca2ccf7
Merge pull request #95 from agentlab/Develop
amivanoff May 15, 2019
7a64f67
Реализовать таблицу Events для open source редактора UnifiedViews
mr7falcon May 4, 2019
b201680
Merge pull request #94 from agentlab/EventsFormRealization
amivanoff May 15, 2019
89d4e81
Lab 2 menu
Shamilen May 15, 2019
351e0b8
test
TatianaShadchina May 18, 2019
90e02b2
test
TatianaShadchina May 18, 2019
5680dfa
Test2
TatianaShadchina May 22, 2019
dc260b8
Тест добавления и удаления репозиториев
Enfaseel May 22, 2019
7fcd473
Тест добавления и удаления репозиториев
Enfaseel May 22, 2019
250e924
Тестирование INSERT и DELETE SPARQL с GET без контекста #53
Defasium May 26, 2019
123b59f
https://github.com/agentlab/rdf-scheme-editor/issues/58
ChinukB12 May 28, 2019
fc8b7e1
ActionsFormRealization
polinagamina May 28, 2019
ae074e7
Merge pull request #106 from agentlab/Actions
amivanoff May 29, 2019
43c7d70
Merge pull request #99 from agentlab/shamilen
amivanoff May 29, 2019
85113f6
Добавил проверку наличия/отсутствия репозитория 'mem', вместо проверк…
Enfaseel Jun 5, 2019
e450ec2
Storybook fix
amivanoff Jun 5, 2019
120176c
изменила
TatianaShadchina Jun 9, 2019
601b81c
Обновленная 2 лаба #104
ChinukB12 Jun 11, 2019
2afe187
Merge pull request #104 from agentlab/Troshnev
amivanoff Jun 11, 2019
1b627f1
Merge pull request #101 from agentlab/repositories_test
amivanoff Jun 11, 2019
af6ea9b
add getProtsenko
ChinukB12 Jun 11, 2019
be87c6b
Delete getProtsenko.test.js
ChinukB12 Jun 11, 2019
cc0101c
#57
ChinukB12 Jun 11, 2019
944296b
Merge pull request #119 from agentlab/Protsenko-Olga
amivanoff Jun 11, 2019
7551e46
Server
Jun 13, 2019
e6e3b6d
Доработанная вставка и удаление без контекста #102
Defasium Jun 13, 2019
4288636
hotfix
Defasium Jun 13, 2019
8f76a20
Тест переименован для предотвращения коллизий с другими тестами #102
Defasium Jun 13, 2019
d3274ec
laba 2 #54
dariasivochka Jun 13, 2019
f483c76
laba 2 #54
dariasivochka Jun 13, 2019
c8bdc84
lab 2 #60
Jun 14, 2019
fb75565
Conecting form to server
const-er Jun 14, 2019
5f9840b
hotfix2
Defasium Jun 14, 2019
4a5a68b
Merge pull request #102 from agentlab/lab3ishkov
amivanoff Jun 14, 2019
fc9bb1d
message
const-er Jun 14, 2019
b9ff106
message
const-er Jun 14, 2019
b7104df
Добили
Jun 14, 2019
2064dc5
Сделали
dariasivochka Jun 14, 2019
893e3fb
Сделали2
dariasivochka Jun 14, 2019
a0a80e9
Merge pull request #121 from agentlab/larin
amivanoff Jun 14, 2019
02ffde5
Merge pull request #120 from agentlab/sivochka
amivanoff Jun 14, 2019
498949c
Storybook errors fix
amivanoff Jun 14, 2019
d8c49d6
refactor
Jun 14, 2019
fe30878
Add tests to repositories form
Jun 14, 2019
81e47be
Refactoring and linking to server Query form
mr7falcon Jun 14, 2019
86b417c
TextArea changing support
mr7falcon Jun 14, 2019
944dd26
QueryForm component test
mr7falcon Jun 18, 2019
9b6f955
Merge pull request #124 from agentlab/QueryFormServer
amivanoff Jun 18, 2019
1aeaac6
Add wrong server URLs
Jun 19, 2019
f27c699
Merge pull request #126 from agentlab/view-repos
amivanoff Jun 19, 2019
4af0d8f
задание на 4
basuluu Jun 21, 2019
6a25165
update
const-er Jun 21, 2019
a50d3a4
Связала форму Summary с сервером
TatianaShadchina Jun 23, 2019
2c97323
update
polinagamina Jun 24, 2019
8e09638
bestofthebest
basuluu Jun 24, 2019
37c7f2a
Merge pull request #125 from agentlab/namespasesServ
amivanoff Jun 24, 2019
4c8a41c
Merge pull request #132 from agentlab/Kharkov4
amivanoff Jun 24, 2019
53923d3
Поправила поля ввода
TatianaShadchina Jun 24, 2019
cf2c0f1
Merge pull request #133 from agentlab/Server_Summary
amivanoff Jun 24, 2019
cc9f3c7
Задание 2
sobolevma Jun 24, 2019
177e43d
чанг лаб3
Trang5396 Jun 25, 2019
6f8ec4b
menu
myfuckingend Jun 25, 2019
40f5ac2
update
AnzorBmstu Jun 26, 2019
bc18ef6
done
AnzorBmstu Jun 26, 2019
aef9672
up-to-date
lostmap Jun 26, 2019
526aaec
error 403
polinagamina Jun 27, 2019
2c449de
if-else-delete
AnzorBmstu Jun 27, 2019
9b22327
Issue 128
abdullinams Jun 27, 2019
4541d20
Export Repository
lizdib Jun 27, 2019
f4b52b0
Finish create new repos
Shamilen Jun 27, 2019
2998ed0
update after
Trang5396 Jun 27, 2019
085d1be
sosnin second lab
alexandr-sosnin-77 Jun 27, 2019
6af2435
Jest tests for repo form
Jun 27, 2019
66e6ea8
Fix
Jun 27, 2019
8389c6f
Устранена ошибка child <tr>
AnzorBmstu Jun 27, 2019
c4c00d9
Add test for empty response
Jun 27, 2019
d3e11af
delete realisation
ciganeshima Jun 27, 2019
9e8393c
Merge pull request #150 from agentlab/ciganeshima
amivanoff Jun 27, 2019
563c503
Finish
Shamilen Jun 27, 2019
95fe660
full
polinagamina Jun 27, 2019
f2fa9f5
Merge pull request #159 from agentlab/view-repos
amivanoff Jun 27, 2019
44cba5f
test_added
AnzorBmstu Jun 27, 2019
4c95187
Merge pull request #135 from agentlab/addRDF
amivanoff Jun 27, 2019
2825c01
Issue 128 modified
abdullinams Jun 27, 2019
62df706
Unified Views Scheduler
myfuckingend Jun 27, 2019
bc54f91
Pipelines Executions
dazdraperma00 Jun 26, 2019
e86adaa
fixed
dazdraperma00 Jun 27, 2019
adcbe29
Issue 128 modified url
abdullinams Jun 27, 2019
2ec960e
Merge branch 'master' into Khanin
dazdraperma00 Jun 27, 2019
b5ccaa5
Merge pull request #156 from agentlab/shamilen
amivanoff Jun 27, 2019
0afa01c
Merge pull request #158 from agentlab/sosninlab2
amivanoff Jun 27, 2019
79bdeed
change last
AnzorBmstu Jun 27, 2019
3ad4902
Issue 128 finally
abdullinams Jun 27, 2019
15a81d8
Merge pull request #157 from agentlab/abd
amivanoff Jun 27, 2019
53cacb9
мелкие правки
AnzorBmstu Jun 27, 2019
3b8f74e
Merge pull request #147 from agentlab/branch
amivanoff Jun 27, 2019
17f36dd
Merge pull request #149 from agentlab/explore_connect
amivanoff Jun 27, 2019
8f69cc7
fixxxx
dazdraperma00 Jun 27, 2019
b9107c0
Query Table #129
katyamitino Jun 27, 2019
20ffd8d
Merge pull request #161 from agentlab/katyamitino-patch-1
amivanoff Jun 27, 2019
4d7c2b1
Merge pull request #32 from agentlab/Khanin
amivanoff Jun 27, 2019
fbea023
Merge pull request #145 from agentlab/sobolevma
amivanoff Jun 27, 2019
80111c2
Update
lizdib Jun 27, 2019
bb52a7a
Trang#137
Trang5396 Jun 28, 2019
c802a83
Update2
lizdib Jun 28, 2019
a46df74
Update3
lizdib Jun 28, 2019
4d896a6
Merge pull request #155 from agentlab/feat/eliza
amivanoff Jun 28, 2019
8ca5bf8
update later
Trang5396 Jun 28, 2019
ceea168
update2
Trang5396 Jun 28, 2019
adbcee6
Merge pull request #163 from agentlab/Trang#137
amivanoff Jun 28, 2019
627128e
Jest-тест создания pipeline для Unified Views
muxart100 Jun 28, 2019
336874a
Merge pull request #164 from agentlab/muxart100-patch-1
amivanoff Jun 28, 2019
993ac19
pipelines done yeay
lostmap Jun 28, 2019
a6504ff
test fix
lostmap Jun 28, 2019
27a4f1b
Merge pull request #165 from agentlab/lostmap
amivanoff Jun 28, 2019
3449778
Revert "Lostmap"
amivanoff Oct 18, 2019
441c096
Merge pull request #174 from agentlab/revert-165-lostmap
amivanoff Oct 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": ["react-app", "plugin:import/errors", "plugin:import/warnings", "airbnb", "prettier", "prettier/react"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["import", "prettier", "react", "react-hooks"],
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "all",
"jsxBracketSameLine": true,
"jsxSingleQuote": true,
"endOfLine": "lf"
}
],
"class-methods-use-this": [
"warn",
{
"exceptMethods": [
"componentDidCatch",
"componentDidMount",
"componentDidUpdate",
"componentWillMount",
"componentWillReceiveProps",
"componentWillUnmount",
"componentWillUpdate",
"render",
"shouldComponentUpdate"
]
}
],
"import/no-default-export": "warn",
"import/prefer-default-export": "off",
"no-alert": "error",
"no-await-in-loop": "warn",
"no-console": "off",
"no-continue": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-restricted-syntax": ["off", "ForOfStatement"],
"no-underscore-dangle": "off",
"no-nested-ternary": "off",
"no-use-before-define": ["error", "nofunc"],
"guard-for-in": "off",
"global-require": "off",
"arrow-body-style": "off",
"prefer-template": "off",
"spaced-comment": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/destructuring-assignment": "off",
"react/no-multi-comp": "off",
"react/no-array-index-key": "off",
"react/no-did-update-set-state": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"]
}
]
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "all",
"jsxBracketSameLine": true,
"jsxSingleQuote": true,
"endOfLine": "lf"
}
26 changes: 14 additions & 12 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { configure, addDecorator, addParameters } from '@storybook/react';
import { withNotes } from '@storybook/addon-notes';
import { withInfo } from "@storybook/addon-info";
import { withInfo } from '@storybook/addon-info';
import { withOptions } from '@storybook/addon-options';
import requireContext from 'require-context.macro';
import { withI18next } from 'storybook-addon-i18next';

import i18n from '../src/i18n';

import 'antd/dist/antd.css';
import '../src/index.css';

addDecorator(withNotes);
Expand All @@ -16,10 +17,10 @@ addDecorator(
inline: true,
source: true,
propTables: false,
})
}),
);

addParameters ({
addParameters({
options: {
/**
* name to display in the top left corner
Expand Down Expand Up @@ -97,19 +98,20 @@ addParameters ({
},
});

addDecorator(withI18next({
i18n,
languages: {
en: 'English',
ru: 'Русский',
}
}));

addDecorator(
withI18next({
i18n,
languages: {
en: 'English',
ru: 'Русский',
},
}),
);

const req = requireContext('../src', true, /\.stories\.js$/);

function loadStories() {
req.keys().forEach(filename => req(filename));
req.keys().forEach((filename) => req(filename));
}

configure(loadStories, module);
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnPaste": true,
"editor.formatOnSave": true
}
114 changes: 114 additions & 0 deletions insertAndDeleteWithGet.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
describe('test Get', function() {
const data =
'<http://exampleSub> <http://examplePred> <http://exampleObj>. ' +
'GRAPH <urn:sparql:tests:insert:data> {' +
'<http://exampleSub> <http://exampleSub> 102} ';
var params =
'action=exec&' +
'queryLn=SPARQL&' +
'query=' +
encodeURIComponent(
'PREFIX foaf: <https://agentlab.ru/rdf4j-workbench/repositories> ' + 'SELECT ?Subject ' + 'WHERE{ ' + data + '}',
) +
'&' +
'limit_query=100&' +
'infer=true&';

it('insert data to rdf repository with context', async () => {
var urlprefix = 'https://agentlab.ru/rdf4j-workbench/repositories/rtrtrtr/query' + '?' + params;
//проверка до добавления
var dataSel = await fetch(urlprefix, {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
}).then((r) => r.json());
expect(dataSel.results.bindings.length).toEqual(0);

//добавление
var paramsGet = 'query=' + encodeURIComponent('INSERT DATA' + '{' + data + '}');
urlprefix = 'https://agentlab.ru/rdf4j-workbench/repositories/rtrtrtr' + '?' + paramsGet;
var result = await fetch(urlprefix, {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
}).then((r) => {
console.log(r);
expect(r).toBeInstanceOf(Response);
expect(r['status']).toEqual(200);
return r;
});
});

it('check data after insert to rdf repository with context', async () => {
//проверка после
var urlprefix = 'https://agentlab.ru/rdf4j-workbench/repositories/rtrtrtr/query' + '?' + params;
var dataSel = await fetch(urlprefix, {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
}).then((r) => r.json());
//console.log('===================== ' + Object.keys(dataSel.results.bindings));
expect(dataSel.results.bindings.length).toEqual(0);
});

it('delete data to rdf repository with context', async () => {
//добавление
urlprefix = 'https://agentlab.ru/rdf4j-workbench/repositories/rtrtrtr/update';
var result = await fetch(urlprefix, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
body: 'update=' + encodeURIComponent('INSERT DATA' + '{' + data + '}'),
}).then((r) => {
console.log(r);
expect(r).toBeInstanceOf(Response);
expect(r['status']).toEqual(200);
return r;
});
var urlprefix = 'https://agentlab.ru/rdf4j-workbench/repositories/rtrtrtr/query' + '?' + params;
//проверка до
var dataSel = await fetch(urlprefix, {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
}).then((r) => r.json());
expect(dataSel.results.bindings.length).toBeGreaterThan(0);

//удаление
var paramsGet = 'query=' + encodeURIComponent('DELETE DATA' + '{' + data + '}');
urlprefix = 'https://agentlab.ru/rdf4j-workbench/repositories/rtrtrtr' + '?' + paramsGet;
var result = await fetch(urlprefix, {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
}).then((r) => {
console.log(r);
expect(r).toBeInstanceOf(Response);
expect(r['status']).toEqual(200);
return r;
});

//проверка после
dataSel = await fetch(urlprefix, {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/sparql-results+json',
},
}).then((r) => r.json());
//console.log('===================== ' + Object.keys(dataSel.results.bindings));
expect(dataSel.results.bindings.length).toBeGreaterThan(0);
});
});
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": "src",
"paths": {
"*": ["src/*"]
}
}
}
Loading