From c23ab598ce0dc55c06a71f170cc2e295c0ddc8ae Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Sat, 29 Jul 2023 07:11:48 +0200 Subject: [PATCH 1/2] Remove obsolete "common" context We have the concept of "conventions" now, which are more flexible. --- datalad_tabby/resources/contexts/common.jsonld | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 datalad_tabby/resources/contexts/common.jsonld diff --git a/datalad_tabby/resources/contexts/common.jsonld b/datalad_tabby/resources/contexts/common.jsonld deleted file mode 100644 index 05c53f7..0000000 --- a/datalad_tabby/resources/contexts/common.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "bibo": "http://purl.org/ontology/bibo/", - "schema": "https://schema.org/", - "uom": "http://www.ontology-of-units-of-measure.org/resource/om-2/" - "access-url": "schema:url", - "description": "schema:description", - "doi": "bibo:doi", - "identifier": "schema:identifier", - "keywords": "schema:keywords", - "last-updated": "schema:dateModified", - "license": "schema:license", - "name": "schema:name", - "version": "schema:version", -} From 723b47e3decf5ffda7cb332ab45b3c2e27dc7240 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Sat, 29 Jul 2023 07:14:52 +0200 Subject: [PATCH 2/2] Remove stale draft of `clone` command This is no longer needed or planned. With https://github.com/mih/datalad-mihextras/commit/59ea085dcf7456306ffcfa89fef9b0682c9a194c ot seems clear that *any* sensible JSON-LD document source could be used as input for a "clone" or bootstrap operation. Therefore it would be an overfit and too narrow to implement this for tabby alone. --- datalad_tabby/clone.py | 73 ------------------------------------------ 1 file changed, 73 deletions(-) delete mode 100644 datalad_tabby/clone.py diff --git a/datalad_tabby/clone.py b/datalad_tabby/clone.py deleted file mode 100644 index 8118c46..0000000 --- a/datalad_tabby/clone.py +++ /dev/null @@ -1,73 +0,0 @@ -#"""DataLad Tabby Clone command""" -# -#__docformat__ = 'restructuredtext' -# -#from os.path import curdir -#from os.path import abspath -# -#from datalad_next.commands import ( -# EnsureCommandParameterization, -# ValidatedInterface, -# Parameter, -# build_doc, -# datasetmethod, -# eval_results, -# generic_result_renderer, -# get_status_dict, -# ParameterConstraintContext, -#) -#from datalad_next.constraints import ( -# EnsurePath, -#) -# -#import logging -#lgr = logging.getLogger('datalad.tabby.clone') -# -# -#class CloneParameterValidator(EnsureCommandParameterization): -# """""" -# -# def __init__(self): -# super().__init__( -# param_constraints=dict( -# tabby_file=EnsurePath() -# ), -# joint_constraints={ -# }, -# ) -# -# -## decoration auto-generates standard help -#@build_doc -## all commands must be derived from Interface -#class Clone(ValidatedInterface): -# # first docstring line is used a short description in the cmdline help -# # the rest is put in the verbose help and manpage -# """Short description of the command -# -# Long description of arbitrary volume. -# """ -# -# _validator_ = CloneParameterValidator() -# -# # parameters of the command, must be exhaustive -# _params_ = dict( -# tabby_file=Parameter( -# args=("-t", "--tabby-file"), -# doc="""Just a placeholder for the besic setup"""), -# ) -# -# @staticmethod -# # generic handling of command results (logging, rendering, filtering, ...) -# @eval_results -# # signature must match parameter list above -# # additional generic arguments are added by decorators -# def __call__( -# tabby_file=abspath(curdir), -# ): -# yield get_status_dict( -# action='tabby_clone', -# path=tabby_file, -# status='error', -# message="This command has not yet been implemented", -# )