Datasets¶
Manage datasets and their metadata.
Dataset object¶
-
class
renga.models.datasets.
Dataset
(name, created=NOTHING, identifier=NOTHING, authors=NOTHING, files=NOTHING)[source]¶ Repesent a dataset.
Type:
"dctypes:Dataset"
Context:
{ "name": "dcterms:name", "prov": "http://www.w3.org/ns/prov#", "added": "http://schema.org/dateCreated", "identifier": { "@id": "dctypes:Dataset", "@type": "@id" }, "url": "http://schema.org/url", "authors": { "@container": "@list" }, "affiliation": "scoro:affiliate", "email": "dcterms:email", "files": { "@container": "@index" }, "dcterms": "http://purl.org/dc/terms/", "created": "http://schema.org/dateCreated", "scoro": "http://purl.org/spar/scoro/", "dctypes": "http://purl.org/dc/dcmitypes/", "foaf": "http://xmlns.com/foaf/0.1/" }
-
from_jsonld
(data)¶ Instantiate a JSON-LD class from data.
-
Dataset file¶
Manage files in the dataset.
-
class
renga.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:
{ "name": "dcterms:name", "email": "dcterms:email", "authors": { "@container": "@list" }, "added": "http://schema.org/dateCreated", "url": "http://schema.org/url", "scoro": "http://purl.org/spar/scoro/", "foaf": "http://xmlns.com/foaf/0.1/", "dcterms": "http://purl.org/dc/terms/", "affiliation": "scoro:affiliate" }
-
from_jsonld
(data)¶ Instantiate a JSON-LD class from data.
-
Author¶
-
class
renga.models.datasets.
Author
(name, email, affiliation=None)[source]¶ Represent the author of a resource.
Type:
"dcterms:creator"
Context:
{ "name": "dcterms:name", "email": "dcterms:email", "dcterms": "http://purl.org/dc/terms/", "foaf": "http://xmlns.com/foaf/0.1/", "scoro": "http://purl.org/spar/scoro/", "affiliation": "scoro:affiliate" }
-
from_jsonld
(data)¶ Instantiate a JSON-LD class from data.
-