Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Data Harvesting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Helmholtz Metadata Collaboration
HMC Public
unHIDE
Data Harvesting
Commits
48ebea5b
Commit
48ebea5b
authored
2 years ago
by
Said Fathalla
Browse files
Options
Downloads
Patches
Plain Diff
replace affiliation string of orga by its IRI if exist
parent
ef0c441e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!11
Make release 1.0.0
,
!10
Release tag 1.0.0 to main
,
!1
replace affiliation string of orga by its IRI if exist
Pipeline
#201431
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data_mining/data_enrichment/SPARQL-update.rq
+18
-1
18 additions, 1 deletion
data_mining/data_enrichment/SPARQL-update.rq
with
18 additions
and
1 deletion
data_mining/data_enrichment/SPARQL-update.rq
+
18
−
1
View file @
48ebea5b
...
...
@@ -7,9 +7,26 @@ WHERE {
?p
schema
:
name
?name
}
# 2. if the affiliation is an IRI, schema:Organization type is added
# 2. a. if the affiliation is an IRI representing an organization, then
# schema:Organization type is added to that organization (IRI)
PREFIX
schema
:
<http://schema.org/>
INSERT
{
?org
a
schema
:
Organization
}
WHERE
{
?r
schema
:
affiliation
?org
.
FILTER
(
ISIRI
(
?org
))
}
#2. b. the string affiliation of a reource is replaced by the organization IRI (if exist)
INSERT
{
?r
schema
:
affiliation
?org
}
WHERE
{
?r
schema
:
affiliation
?name
.
?org
a
schema
:
Organization
.
FILTER
(
ISIRI
(
?org
)).
?org
schema
:
name
?oname
.
FILTER
(
STR
(
?oname
)
=
STR
(
?name
))
};
DELETE
{
?r
schema
:
affiliation
?affstr
}
WHERE
{
?r
schema
:
affiliation
?affstr
.
FILTER
(
!
ISIRI
(
?affstr
))
?org
a
schema
:
Organization
.
?org
schema
:
name
?oname
.
FILTER
(
STR
(
?oname
)
=
STR
(
?affstr
))
};
This diff is collapsed.
Click to expand it.
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