Source code for fairgraph.openminds.core.data.license
"""
Structured information on a used license.
"""
# this file was auto-generated
from datetime import date, datetime
from fairgraph.base_v3 import KGObjectV3, IRI
from fairgraph.fields import Field
[docs]class License(KGObjectV3):
"""
Structured information on a used license.
"""
default_space = "controlled"
type = ["https://openminds.ebrains.eu/core/License"]
context = {
"schema": "http://schema.org/",
"kg": "https://kg.ebrains.eu/api/instances/",
"vocab": "https://openminds.ebrains.eu/vocab/",
"terms": "https://openminds.ebrains.eu/controlledTerms/",
"core": "https://openminds.ebrains.eu/core/"
}
fields = [
Field("name", str, "vocab:fullName", multiple=False, required=True,
doc="Whole, non-abbreviated name of the license."),
Field("legal_code", IRI, "vocab:legalCode", multiple=False, required=True,
doc="Type of legislation that claims to cover the law system (complete or parts) as it existed at the time the code was enacted."),
Field("alias", str, "vocab:shortName", multiple=False, required=True,
doc="Shortened or fully abbreviated name of the license."),
Field("webpages", str, "vocab:webpage", multiple=True, required=False,
doc="Hypertext document (block of information) found on the World Wide Web."),
]
existence_query_fields = ('alias',)