Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AIMS Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
apps
AIMS Frontend
Commits
2edadbea
Commit
2edadbea
authored
3 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Update: Inheritance with owl:imports
parent
3c4cb104
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!21
Chore: 1.3.0
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/ApplicationProfiles/Modals/Edit.vue
+26
-1
26 additions, 1 deletion
src/components/ApplicationProfiles/Modals/Edit.vue
src/types/nodeShapeProperty.d.ts
+1
-0
1 addition, 0 deletions
src/types/nodeShapeProperty.d.ts
src/util/linkedData.ts
+4
-1
4 additions, 1 deletion
src/util/linkedData.ts
with
31 additions
and
2 deletions
src/components/ApplicationProfiles/Modals/Edit.vue
+
26
−
1
View file @
2edadbea
...
...
@@ -18,7 +18,7 @@
@
input=
"setUrl"
trim
/>
<div
v-for=
"formEntry in
f
orm"
:key=
"formEntry.url"
>
<div
v-for=
"formEntry in
visibleF
orm"
:key=
"formEntry.url"
>
<label
:for=
"labelPrefix + formEntry.name"
:id=
"labelPrefix + formEntry.name + 'Label'"
...
...
@@ -62,6 +62,7 @@ import {
editNodeShapeProperties
,
getApplicationProfileProperty
,
getApplicationProfileTargetClass
,
owlPrefix
,
rdfsPrefix
,
shPrefix
,
}
from
"
@/util/linkedData
"
;
...
...
@@ -104,6 +105,15 @@ export default Vue.extend({
url
:
shPrefix
+
"
targetClass
"
,
value
:
""
,
},
{
hidden
:
true
,
locale
:
false
,
multiline
:
false
,
name
:
"
imports
"
,
type
:
"
url
"
,
url
:
owlPrefix
+
"
imports
"
,
value
:
""
,
},
]
as
NodeShapeProperty
[],
isOpen
:
false
,
};
...
...
@@ -160,6 +170,9 @@ export default Vue.extend({
this
.
definition
);
},
visibleForm
():
NodeShapeProperty
[]
{
return
this
.
form
.
filter
((
entry
)
=>
!
entry
.
hidden
);
},
},
watch
:
{
"
applicationProfile.base_url
"
()
{
...
...
@@ -185,6 +198,7 @@ export default Vue.extend({
},
save
()
{
changeBaseUrl
(
this
.
applicationProfile
,
this
.
definition
,
this
.
url
);
this
.
setImports
();
editNodeShapeProperties
(
this
.
applicationProfile
,
this
.
definition
,
...
...
@@ -198,6 +212,17 @@ export default Vue.extend({
this
.
setFormProperty
(
property
.
name
,
definitionValue
);
});
},
setImports
()
{
const
shNode
=
this
.
form
.
find
(
(
formEntry
)
=>
formEntry
.
url
===
shPrefix
+
"
node
"
);
const
owlImports
=
this
.
form
.
find
(
(
formEntry
)
=>
formEntry
.
url
===
owlPrefix
+
"
imports
"
);
if
(
shNode
!==
undefined
&&
owlImports
!==
undefined
)
{
this
.
setForm
(
owlImports
,
shNode
.
value
);
}
},
setForm
(
property
:
NodeShapeProperty
,
value
:
string
)
{
property
.
value
=
value
;
},
...
...
This diff is collapsed.
Click to expand it.
src/types/nodeShapeProperty.d.ts
+
1
−
0
View file @
2edadbea
declare
interface
NodeShapeProperty
{
hidden
?:
boolean
;
locale
:
boolean
;
multiline
:
boolean
;
name
:
string
;
...
...
This diff is collapsed.
Click to expand it.
src/util/linkedData.ts
+
4
−
1
View file @
2edadbea
...
...
@@ -19,6 +19,7 @@ import {
import
{
v4
as
uuidv4
}
from
"
uuid
"
;
export
const
aimsPrefix
=
"
https://aims.org/applicationProfiles/
"
;
export
const
owlPrefix
=
"
http://www.w3.org/2002/07/owl#
"
;
export
const
rdfPrefix
=
"
http://www.w3.org/1999/02/22-rdf-syntax-ns#
"
;
export
const
rdfsPrefix
=
"
http://www.w3.org/2000/01/rdf-schema#
"
;
export
const
shPrefix
=
"
http://www.w3.org/ns/shacl#
"
;
...
...
@@ -300,7 +301,9 @@ export function editNodeShapeProperties(
dataset
.
removeMatches
(
baseUrlNode
,
predicate
);
}
dataset
.
add
(
factory
.
quad
(
baseUrlNode
,
predicate
,
object
));
if
(
property
.
value
!==
""
)
{
dataset
.
add
(
factory
.
quad
(
baseUrlNode
,
predicate
,
object
));
}
}
}
...
...
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
559c818b
·
3 years ago
mentioned in commit
559c818b
mentioned in commit 559c818b3413cd230ed12b17b2cb2c9f613da360
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment