diff --git a/examples/merge/README.md b/examples/merge/README.md deleted file mode 100644 index 35266b8a..00000000 --- a/examples/merge/README.md +++ /dev/null @@ -1,39 +0,0 @@ -Merge Example -================== - -With felis installed, you can try out the `merge` command in this directory. - -You can merge a felis schema file with extra annotations in a graph format: - -``` -felis merge point.yml point-extra.yml -``` - -The graph annotations will overwrite properties for a given `@id` only. -They appear like this (see `point-extra.yml`): -``` - ---- -"@graph": - - "@id": "#Geometry_Point.ra" - ivoa:ucd: pos.eq.ra;meta.main - fits:tunit: deg - - "@id": "#Geometry_Point.dec" - ivoa:ucd: pos.eq.dec;meta.main - fits:tunit: deg -``` - -The output of merge can be pipelined into `load-tap` - -``` -felis merge point.yml point-extra.yml |\ - felis load-tap --dry-run --engine-url=sqlite:// - -``` - -It is also possible to merge multiple schemas as well, in addition to pipelining them -into `load-tap`: - -``` -felis merge point.yml point-extra.yml locations.yml |\ - felis load-tap --dry-run --engine-url=sqlite:// - -``` diff --git a/examples/merge/locations.yml b/examples/merge/locations.yml deleted file mode 100644 index 665d4368..00000000 --- a/examples/merge/locations.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Location -"@id": "#Location" -tables: - - name: Address - "@id": "#Location.Address" - columns: - - name: id - "@id": "#Location.Address.id" - description: Primary Key - datatype: long - - name: street_address_1 - "@id": "#Location.Address.street_address_1" - description: Primary Address Line - datatype: string - length: 128 - - name: street_address_2 - "@id": "#Location.Address.street_address_2" - description: Secondary Address Line - datatype: string - length: 128 - - name: postal_code - "@id": "#Location.Address.postal_code" - description: Postal Code (ZIP code in USA) - datatype: string - length: 16 - primaryKey: "#Location.Address.id" diff --git a/examples/merge/point-extra.yml b/examples/merge/point-extra.yml deleted file mode 100644 index f9686829..00000000 --- a/examples/merge/point-extra.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@graph": - - "@id": "#Geometry_Point.ra" - ivoa:ucd: pos.eq.ra;meta.main - fits:tunit: deg - - "@id": "#Geometry_Point.dec" - ivoa:ucd: pos.eq.dec;meta.main - fits:tunit: deg diff --git a/examples/merge/point.yml b/examples/merge/point.yml deleted file mode 100644 index 4b39bd5f..00000000 --- a/examples/merge/point.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: Geometry -"@id": "#Geometry" -tables: - - name: Point - "@id": "#Geometry_Point" - columns: - - name: ra - "@id": "#Geometry_Point.ra" - datatype: float - - name: dec - "@id": "#Geometry_Point.dec" - datatype: float - - name: Line - "@id": "#Geometry_Line" - columns: - - name: ra0 - "@id": "#Geometry_Line.ra0" - datatype: float - - name: dec0 - "@id": "#Geometry_Line.dec0" - datatype: float - - name: ra1 - "@id": "#Geometry_Line.ra1" - datatype: float - - name: dec1 - "@id": "#Geometry_Line.dec1" - datatype: float diff --git a/examples/modify-tap/README.md b/examples/modify-tap/README.md deleted file mode 100644 index 0860924e..00000000 --- a/examples/modify-tap/README.md +++ /dev/null @@ -1,29 +0,0 @@ -Modify Tap Example -================== - -With felis installed, you can try out the modify-tap command in this directory. - -### Option `--start-schema-at=` - -This command will modify `tap:schema_index` when encountered as 0, missing, or greater -than index, and assign it a new index, starting at `` and increasing in the order it is -encountered. - -``` -felis modify-tap --start-schema-at=10 point.yml locations.yml data_release.yml -``` - -The command can be pipelines with a merge command: - -``` -felis modify-tap --start-schema-at=10 point.yml locations.yml data_release.yml |\ - felis merge - ../merge/point-extra.yml -``` - -Which can also be pipelined into the `load-tap` command: - -``` -felis modify-tap --start-schema-at=10 point.yml locations.yml data_release.yml |\ - felis merge - ../merge/point-extra.yml |\ - felis load-tap --dry-run --engine-url=sqlite:// - -``` diff --git a/examples/modify-tap/data_release.yml b/examples/modify-tap/data_release.yml deleted file mode 100644 index 91703678..00000000 --- a/examples/modify-tap/data_release.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: DataReleases -"@id": "#DR" -tap:schema_index: 0 -tables: - - name: Release - "@id": "#DR.Release" - columns: - - name: id - "@id": "#DR.Release.id" - description: Primary Key - datatype: long - - name: name - "@id": "#DR.Release.Name" - description: Name of the release - datatype: string - length: 128 - - name: description - "@id": "#DR.Release.description" - description: A description of the release - datatype: text - length: 8192 - primaryKey: "#DR.Release.id" diff --git a/examples/modify-tap/locations.yml b/examples/modify-tap/locations.yml deleted file mode 100644 index 665d4368..00000000 --- a/examples/modify-tap/locations.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Location -"@id": "#Location" -tables: - - name: Address - "@id": "#Location.Address" - columns: - - name: id - "@id": "#Location.Address.id" - description: Primary Key - datatype: long - - name: street_address_1 - "@id": "#Location.Address.street_address_1" - description: Primary Address Line - datatype: string - length: 128 - - name: street_address_2 - "@id": "#Location.Address.street_address_2" - description: Secondary Address Line - datatype: string - length: 128 - - name: postal_code - "@id": "#Location.Address.postal_code" - description: Postal Code (ZIP code in USA) - datatype: string - length: 16 - primaryKey: "#Location.Address.id" diff --git a/examples/modify-tap/point.yml b/examples/modify-tap/point.yml deleted file mode 100644 index 881dd4ce..00000000 --- a/examples/modify-tap/point.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: Geometry -"@id": "#Geometry" -tap:schema_index: 9 -tables: - - name: Point - "@id": "#Geometry_Point" - columns: - - name: ra - "@id": "#Geometry_Point.ra" - datatype: float - - name: dec - "@id": "#Geometry_Point.dec" - datatype: float - mysql:datatype: REAL - - name: Line - "@id": "#Geometry_Line" - columns: - - name: ra0 - "@id": "#Geometry_Line.ra0" - datatype: float - - name: dec0 - "@id": "#Geometry_Line.dec0" - datatype: float - - name: ra1 - "@id": "#Geometry_Line.ra1" - datatype: float - - name: dec1 - "@id": "#Geometry_Line.dec1" - datatype: float