Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
uri.hab.de
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
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
dmj
uri.hab.de
Commits
e7f164eb
Commit
e7f164eb
authored
6 years ago
by
David Maus
Browse files
Options
Downloads
Patches
Plain Diff
Refactor Schema of rights metadata
parent
d2534bbb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/instance/schema/diglib-rightsmd.rnc
+7
-31
7 additions, 31 deletions
public/instance/schema/diglib-rightsmd.rnc
public/instance/schema/shared-dc.rnc
+52
-0
52 additions, 0 deletions
public/instance/schema/shared-dc.rnc
with
59 additions
and
31 deletions
public/instance/schema/diglib-rightsmd.rnc
+
7
−
31
View file @
e7f164eb
# Administrative Metadaten
#
# Autor: David Maus <maus@hab.de>
# Timestamp: <201
8-11-07 11:33
:5
9
maus>
# Timestamp: <201
9-01-16 12:17
:5
0
maus>
#
namespace dct = "http://purl.org/dc/terms/"
...
...
@@ -11,42 +11,18 @@ namespace owl = "http://www.w3.org/2002/07/owl#"
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
namespace skos = "http://www.w3.org/2004/02/skos/core#"
include "shared-dc.rnc"
start = element rdf:Description {
element dct:relation {
element foaf:Project {
model.Entity
}
}?
& element dct:rightsHolder {
element dct:Agent {
model.Entity
}
}?
& element dct:rights {
element dct:RightsStatement {
model.Entity
}
}?
& element dct:license {
element dct:LicenseDocument {
model.Entity
}
}?
& property.rightsHolder?
& property.rights?
& property.license?
& element marcrel:fnd {
element dct:Agent {
model.Entity
}
entity.Agent
}*
}
model.Entity =
element owl:sameAs {
attribute rdf:resource { xsd:anyURI }
}*
& element foaf:homepage {
attribute rdf:resource { xsd:anyURI }
}?
& element skos:prefLabel {
attribute xml:lang { xsd:language }?
& text
}+
\ No newline at end of file
This diff is collapsed.
Click to expand it.
public/instance/schema/shared-dc.rnc
0 → 100644
+
52
−
0
View file @
e7f164eb
# Wiederverwendbare Definition von Eigenschaften aus Dublin Core Qualified
#
# Autor: David Maus <maus@hab.de>
# Timestamp: <2019-01-16 12:17:44 maus>
#
namespace dct = "http://purl.org/dc/terms/"
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
namespace owl = "http://www.w3.org/2002/07/owl#"
namespace skos = "http://www.w3.org/2004/02/skos/core#"
property.license =
element dct:license {
element dct:LicenseDocument {
model.Entity
}
}
property.rights =
element dct:rights {
element dct:RightsStatement {
model.Entity
}
}
property.rightsHolder =
element dct:rightsHolder {
entity.Agent
}
entity.Agent =
element dct:Agent {
model.Entity
}
property.label =
element skos:prefLabel {
attribute xml:lang { xsd:language }?
& text
}
model.Entity = ( model.internalEntity | model.externalEntity )
model.internalEntity =
attribute rdf:about { xsd:anyURI }?
& property.label
model.externalEntity =
element owl:sameAs {
attribute rdf:resource { xsd:anyURI }
}*
& property.label
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