Skip to content

Commit

Permalink
Update module for COCO implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Sep 26, 2024
1 parent da0ab36 commit a90354d
Show file tree
Hide file tree
Showing 14 changed files with 100 additions and 2,120 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

env:
MODULE_NAME: MetadataIfdo
MODULE_NAME: MetadataCoco

steps:
- uses: actions/checkout@v1
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# BIIGLE Metadata iFDO
# BIIGLE Metadata COCO

[![Test status](https://github.com/biigle/metadata-ifdo/workflows/Tests/badge.svg)](https://github.com/biigle/metadata-ifdo/actions?query=workflow%3ATests)
[![Test status](https://github.com/biigle/metadata-coco/workflows/Tests/badge.svg)](https://github.com/biigle/metadata-coco/actions?query=workflow%3ATests)

This is a BIIGLE module to add support for [iFDO](https://marine-imaging.com/fair/ifdos/iFDO-overview) metadata files.
This is a BIIGLE module to add support for COCO metadata files.

## Installation

Run `composer require biigle/metadata-ifdo`.
Run `composer require biigle/metadata-coco`.

## Developing

Expand Down
15 changes: 6 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "biigle/metadata-ifdo",
"description": "BIIGLE module for iFDO metadata.",
"name": "biigle/metadata-coco",
"description": "BIIGLE module for COCO metadata.",
"keywords": ["biigle", "biigle-module"],
"license": "GPL-3.0-only",
"support": {
"source": "https://github.com/biigle/metadata-ifdo",
"issues": "https://github.com/biigle/metadata-ifdo/issues"
"source": "https://github.com/biigle/metadata-coco",
"issues": "https://github.com/biigle/metadata-coco/issues"
},
"homepage": "https://biigle.de",
"authors": [
Expand All @@ -16,16 +16,13 @@
],
"autoload": {
"psr-4": {
"Biigle\\Modules\\MetadataIfdo\\": "src"
"Biigle\\Modules\\MetadataCoco\\": "src"
}
},
"require": {
"biigle/ifdo":"^0.4 || ^1.0"
},
"extra": {
"laravel": {
"providers": [
"Biigle\\Modules\\MetadataIfdo\\MetadataIfdoServiceProvider"
"Biigle\\Modules\\MetadataCoco\\MetadataCocoServiceProvider"
]
}
}
Expand Down
41 changes: 41 additions & 0 deletions src/CocoParser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
namespace Biigle\Modules\MetadataCoco;

use Biigle\Services\MetadataParsing\MetadataParser;
use Biigle\Services\MetadataParsing\VolumeMetadata;

class CocoParser extends MetadataParser
{
/**
* {@inheritdoc}
*/
public static function getKnownMimeTypes(): array {
return [
'application/json',
];
}

/**
* {@inheritdoc}
*/
public static function getName(): string
{
return "COCO";
}

/**
* {@inheritdoc}
*/
public function recognizesFile(): bool
{
// TODO
}

/**
* {@inheritdoc}
*/
public function getMetadata(): VolumeMetadata
{
// TODO
}
}
233 changes: 0 additions & 233 deletions src/Converter.php

This file was deleted.

56 changes: 0 additions & 56 deletions src/IfdoParser.php

This file was deleted.

Loading

0 comments on commit a90354d

Please sign in to comment.