Datasets¶
Model objects representing datasets.
Dataset object¶
-
class
renku.core.models.datasets.
Dataset
(*, commit=None, client=None, path=None, project=None, parent=None, creator=NOTHING, id=None, label=None, date_published=None, description=None, identifier=NOTHING, in_language=None, keywords=NOTHING, based_on=None, license=None, name=None, url=None, version=None, created=NOTHING, files=NOTHING, tags=NOTHING, same_as=None, short_name=None)[source]¶ Repesent a dataset.
Type:
["prov:Entity", "schema:Dataset", "wfprov:Artifact"]
Context:
{ "schema": "http://schema.org/", "@version": 1.1, "prov": "http://www.w3.org/ns/prov#", "wfprov": "http://purl.org/wf4ever/wfprov#", "path": "prov:atLocation", "_id": "@id", "_project": { "@id": "schema:isPartOf", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "@version": 1.1, "name": "schema:name", "created": "schema:dateCreated", "updated": "schema:dateUpdated", "version": "schema:schemaVersion", "creator": { "@id": "schema:creator", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "@version": 1.1, "name": "schema:name", "email": "schema:email", "label": "rdfs:label", "affiliation": "schema:affiliation", "alternate_name": "schema:alternateName", "_id": "@id" } }, "_id": "@id" } }, "creator": { "@id": "schema:creator", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "@version": 1.1, "name": "schema:name", "email": "schema:email", "label": "rdfs:label", "affiliation": "schema:affiliation", "alternate_name": "schema:alternateName", "_id": "@id" } }, "date_published": "schema:datePublished", "description": "schema:description", "identifier": "schema:identifier", "in_language": { "@id": "schema:inLanguage", "@context": { "schema": "http://schema.org/", "@version": 1.1, "alternate_name": "schema:alternateName", "name": "schema:name" } }, "keywords": "schema:keywords", "based_on": "schema:isBasedOn", "license": "schema:license", "name": "schema:name", "url": "schema:url", "version": "schema:version", "created": "schema:dateCreated", "files": { "@id": "schema:hasPart", "@context": { "schema": "http://schema.org/", "@version": 1.1, "prov": "http://www.w3.org/ns/prov#", "wfprov": "http://purl.org/wf4ever/wfprov#", "path": "prov:atLocation", "_id": "@id", "_project": { "@id": "schema:isPartOf", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "@version": 1.1, "name": "schema:name", "created": "schema:dateCreated", "updated": "schema:dateUpdated", "version": "schema:schemaVersion", "creator": { "@id": "schema:creator", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "@version": 1.1, "name": "schema:name", "email": "schema:email", "label": "rdfs:label", "affiliation": "schema:affiliation", "alternate_name": "schema:alternateName", "_id": "@id" } }, "_id": "@id" } }, "creator": { "@id": "schema:creator", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "@version": 1.1, "name": "schema:name", "email": "schema:email", "label": "rdfs:label", "affiliation": "schema:affiliation", "alternate_name": "schema:alternateName", "_id": "@id" } }, "added": "schema:dateCreated", "name": "schema:name", "url": "schema:url", "based_on": "schema:isBasedOn" } }, "tags": { "@id": "schema:subjectOf", "@context": { "schema": "http://schema.org/", "@version": 1.1, "name": "schema:name", "description": "schema:description", "commit": "schema:location", "created": "schema:startDate", "dataset": "schema:about", "_id": "@id" } }, "same_as": { "@id": "schema:sameAs", "@context": { "schema": "http://schema.org/", "@version": 1.1, "url": "schema:url", "_id": "@id" } }, "short_name": "schema:alternateName" }
-
asjsonld
()¶ Create JSON-LD with the original source data.
-
creators_csv
¶ Comma-separated list of creators associated with dataset.
-
datadir
¶ Directory where dataset files are stored.
-
default_id
()¶ Configure calculated ID.
-
default_label
()¶ Generate a default label.
-
default_reference
()¶ Create a default reference path.
-
editable
¶ Subset of attributes which user can edit.
-
entities
¶ Yield itself.
-
classmethod
from_jsonld
(data, client=None, commit=None, __reference__=None, __source__=None)¶ Instantiate a JSON-LD class from data.
-
classmethod
from_revision
(client, path, revision='HEAD', parent=None, **kwargs)¶ Return dependency from given path and revision.
-
classmethod
from_yaml
(path, client=None, commit=None)¶ Return an instance from a YAML file.
-
parent
¶ Return the parent object.
-
short_id
¶ Shorter version of identifier.
-
submodules
¶ Proxy to client submodules.
Comma-separated list of tags associated with dataset.
-
to_yaml
()¶ Store an instance to the referenced YAML file.
-
uid
¶ UUID part of identifier.
-
Dataset file¶
Manage files in the dataset.
-
class
renku.core.models.datasets.
DatasetFile
(*, commit=None, client=None, path=None, id=None, label=NOTHING, project=None, parent=None, creator=NOTHING, added=NOTHING, checksum=None, filename=NOTHING, name=None, filesize=None, filetype=None, url=None, based_on=None)[source]¶ Represent a file in a dataset.
Type:
["prov:Entity", "schema:DigitalDocument", "wfprov:Artifact"]
Context:
{ "schema": "http://schema.org/", "@version": 1.1, "prov": "http://www.w3.org/ns/prov#", "wfprov": "http://purl.org/wf4ever/wfprov#", "path": "prov:atLocation", "_id": "@id", "_project": { "@id": "schema:isPartOf", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "@version": 1.1, "name": "schema:name", "created": "schema:dateCreated", "updated": "schema:dateUpdated", "version": "schema:schemaVersion", "creator": { "@id": "schema:creator", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "@version": 1.1, "name": "schema:name", "email": "schema:email", "label": "rdfs:label", "affiliation": "schema:affiliation", "alternate_name": "schema:alternateName", "_id": "@id" } }, "_id": "@id" } }, "creator": { "@id": "schema:creator", "@context": { "schema": "http://schema.org/", "prov": "http://www.w3.org/ns/prov#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "@version": 1.1, "name": "schema:name", "email": "schema:email", "label": "rdfs:label", "affiliation": "schema:affiliation", "alternate_name": "schema:alternateName", "_id": "@id" } }, "added": "schema:dateCreated", "name": "schema:name", "url": "schema:url", "based_on": "schema:isBasedOn" }
-
asjsonld
()¶ Create JSON-LD with the original source data.
-
creators_csv
¶ Comma-separated list of creators associated with dataset.
-
default_id
()¶ Configure calculated ID.
-
default_label
()¶ Generate a default label.
-
default_reference
()¶ Create a default reference path.
-
entities
¶ Yield itself.
-
classmethod
from_jsonld
(data, client=None, commit=None, __reference__=None, __source__=None)¶ Instantiate a JSON-LD class from data.
-
classmethod
from_revision
(client, path, revision='HEAD', parent=None, **kwargs)¶ Return dependency from given path and revision.
-
classmethod
from_yaml
(path, client=None, commit=None)¶ Return an instance from a YAML file.
-
full_path
¶ Return full path in the current reference frame.
-
parent
¶ Return the parent object.
-
size_in_mb
¶ Return file size in megabytes.
-
submodules
¶ Proxy to client submodules.
-
to_yaml
()¶ Store an instance to the referenced YAML file.
-