Datasets¶
Model objects representing datasets.
Dataset object¶
-
class
renku.models.datasets.
Dataset
(name: str, created=NOTHING, identifier=NOTHING, authors=NOTHING, files=NOTHING)[source]¶ Repesent a dataset.
Type:
"dctypes:Dataset"
Context:
{ "dcterms": "http://purl.org/dc/terms/", "dctypes": "http://purl.org/dc/dcmitypes/", "foaf": "http://xmlns.com/foaf/0.1/", "prov": "http://www.w3.org/ns/prov#", "scoro": "http://purl.org/spar/scoro/", "name": "dcterms:name", "created": "http://schema.org/dateCreated", "identifier": { "@id": "dctypes:Dataset", "@type": "@id" }, "authors": { "@container": "@list" }, "email": "dcterms:email", "affiliation": "scoro:affiliate", "files": { "@container": "@index" }, "url": "http://schema.org/url", "added": "http://schema.org/dateCreated" }
Comma-separated list of authors associated with dataset.
-
default_reference
()¶ Create a default reference path.
-
classmethod
from_yaml
(path)¶ Return an instance from a YAML file.
-
short_id
¶ Shorter version of identifier.
Dataset file¶
Manage files in the dataset.
-
class
renku.models.datasets.
DatasetFile
(*, path, url=None, authors=NOTHING, dataset=None, added=NOTHING)[source]¶ Represent a file in a dataset.
Type:
"http://schema.org/DigitalDocument"
Context:
{ "url": "http://schema.org/url", "authors": { "@container": "@list" }, "foaf": "http://xmlns.com/foaf/0.1/", "dcterms": "http://purl.org/dc/terms/", "scoro": "http://purl.org/spar/scoro/", "name": "dcterms:name", "email": "dcterms:email", "affiliation": "scoro:affiliate", "added": "http://schema.org/dateCreated" }
Comma-separated list of authors associated with dataset.
-
default_reference
()¶ Create a default reference path.
-
classmethod
from_jsonld
(data, __reference__=None)¶ Instantiate a JSON-LD class from data.
-
classmethod
from_yaml
(path)¶ Return an instance from a YAML file.
-
full_path
¶ Return full path in the current reference frame.
Author¶
-
class
renku.models.datasets.
Author
(name, email, affiliation=None)[source]¶ Represent the author of a resource.
Type:
"dcterms:creator"
Context:
{ "foaf": "http://xmlns.com/foaf/0.1/", "dcterms": "http://purl.org/dc/terms/", "scoro": "http://purl.org/spar/scoro/", "name": "dcterms:name", "email": "dcterms:email", "affiliation": "scoro:affiliate" }
-
default_reference
()¶ Create a default reference path.
-
classmethod
from_jsonld
(data, __reference__=None)¶ Instantiate a JSON-LD class from data.
-
classmethod
from_yaml
(path)¶ Return an instance from a YAML file.
-