Skip to main content

7 posts tagged with "metadata"

View All Tags

December 2024 Update

2 min read
Brian Pepple
Founder of the Metron Project / Code Monkey

Monthly Statistics

During December the Metron Project added the following to its database:

  • Users: 39
  • Issues: 823
  • Creators: 259
  • Characters: 413

2024 Annual Statistics

During 2024 the Metron Project added the following to its database:

  • Users: 566
  • Issues: 33,784
  • Creators: 2,283
  • Characters: 7,748

Thanks to everyone that contributed!

Grand Comics Database (GCD) ID Support

Recently support for GCD ID's was added to the site, and we've currently linked about 50% of the issues on the site, and with luck, should be completed in the next week or so.

Potential January Projects

I'm looking at some small projects to work on in January, and some potential ones I'm thinking about are:

  • Add Legacy Numbering field
  • Alternative Series Name field
  • Advanced Resources (Series, Issues, etc) Search
  • Resource ID URLS

Not sure which ones (or any) will be implemented, but I'm planning to dig into them a bit more in the next few weeks.

OpenCollective

We've recently set up an account at Open Collective if you wish to help defray the server costs and help with increasing future server capacity.

Anyway, that's all I got for now, hope everyone had a great holiday and are enjoying New Years day. Take Care!

November 2024 Update

3 min read
Brian Pepple
Founder of the Metron Project / Code Monkey

Monthly Statistics

During November the Metron Project added the following to its database:

  • Users: 31
  • Issues: 2,210
  • Creators: 104
  • Characters: 426

Thanks to everyone that contributed!

Metron-Tagger v3.1.0

I released a new version of Metron-Tagger today that adds the ability to migrate data from a comic that contains a ComicInfo.xml.

The conversion from ComicInfo.xml -> MetronInfo.xml does have some caveats though:

  • Elements containing data with a comma in a delimited ComicInfo element. If for example, the Title element contained a story call "Babs: True Blue, I Love You" and it was originally written with a tool other than Metron-Tagger it will split the story into two element items: Babs: True Blue and I Love You .
  • Ratings. We map these to the enums used in MetronInfo, but it's not perfect since the ComicInfo documentation isn't terribly clear how it defines it values, so if you feel our mapping is incorrect please notify us and explain what it should be. Also, I've seen some users use non-valid values which obviously won't work.
  • Series Format. We've also done our best to map the series format, but this is even less defined the age rating since this is just a text element in the schema, and could be anything. We've used the values in Comic-Tagger to handle the conversion, but this isn't perfect.

To migrate your ComicInfo.xml to MetronInfo.xml without any online lookup would simply run:

metron-tagger --migrate /path/to/comics

If you wanted to tag you comics with data from the Metron Comic Book Database, and migrate the data from the existing ComicInfo.xml for those comics not on Metron, you would run:

metron-tagger -om --migrate /path/to/comics

If you run across any bugs or have suggestions for improvements, please file a Bug Report or Feature Request.

Server Upgrade

Finally got around to upgrading the server, and it was fairly uneventful. Yay! 馃帀

OpenCollective

The main repository has finally reached 100 stars, and so most likely in the next week or two, I'll set up a funding option at Open Collective to help defray the server costs and help with increasing future server capacity.

Future

Now the bulk of the work is done with getting the MetronInfo out the door and some initial tooling to generate them, I'm planning to work on some low-hanging bugs with the website over the next month or so, before starting any large scale projects.

Anyway, that's all I've got for this month. Take care!

MetronInfo V1.0

3 min read
Brian Pepple
Founder of the Metron Project / Code Monkey

I'm happy to announce the v1.0 of the MetronInfo schema has been finalized and is now ready to be used by developers and consumers. So, I'll start off by answering some questions (most of this will be from the projects README).

What is it?

MetronInfo is a new xml document type that fixes some deficiencies that exist in the current de facto xml file, ComicInfo.xml, to store metadata for a comic. Some of our improvements include:

  • Addition elements to track information that are not included with the current standard.
  • Better handling of data types. For instance, instead of using delimited strings we use arrays of elements.
  • Elements to track where the data was obtained from.
  • id attributes for resources (Characters, Creators, etc.), so items with different names can be associated correctly.

Is the schema only for the Metron Database?

No, the schema only has Metron in the name since almost every other format has Comic in the name, and the originating author hates naming projects, so he went with the simplest choice. 馃槃 It was designed to be used for any of the comic resources (Comic Vine, AniList, etc.)

Where can I find the schemas?

Version 1.0 of the schema is located in schema directory

Is there documentation for it?

Yes, there is documentation describing the elements usage and also a Matrix to help with age rating mapping.

How can I validate my XML?

It's recommended that any software that writes the XML make use of the schema to validate, so consumers of the XML document can be sure of its data. The schema use XSD 1.1, so you need to make sure your validation code uses that instead of XSD 1.0.

For example to validate the XML in python:

from pathlib import Path
from xmlschema import XMLSchema11, XMLSchemaValidationError

xsd = Path("/home/user/MetronInfo.xsd")
xml = Path("/home/user/MetronInfo.xml")

schema = XMLSchema11(xsd)
try:
    schema.validate(xml)
except XMLSchemaValidationError as e:
    print(f"Failed to validate XML: {e!r}")
    exit(1)

# Code to write / read the xml file

What software currently supports it?

Currently, the following software does:

  • Metron-Tagger - Commandline tool to tag comic with metadata ( MetronInfo or ComicInfo) from Metron Comic Book Database.

If you are a developer that has added support for MetronInfo.xml to your software, please create a PR to update the README or contact me.

Future

One of the goals of the project was to be responsive to the needs of the community, so if you have suggestion for improvements to the schema please file a feature request, bug report, or start a discussion.

Thanks

I'd like to thank everyone that has contributed to the schema, and in particular AJ, Buried-In-Code, and Joe who have helped out a lot in the last few months.

October 2024 Update

2 min read
Brian Pepple
Founder of the Metron Project / Code Monkey

Ok, been fairly busy the last couple of months so naturally blogging has taken a back-burner. So, here's a summary of what's been going on the last few months.

Monthly Statistics

During August the Metron Project added the following to its database:

  • Users: 41
  • Issues: 1,377
  • Creators: 147
  • Characters: 346

During September the following was added:

  • Users: 100
  • Issues: 1,330
  • Creators: 124
  • Characters: 379

During October the following was added:

  • Users: 51
  • Issues: 1,996
  • Creators: 122
  • Characters: 740

Comic Vine Outage

Comic Vine went down at the end of September for about 6 days, so we saw an influx of new users which necessitated in increasing our server's capacity. One thing this episode brought to light out was the need for the project to accept donations for future infrastructure costs (since I'm currently covering the server costs).

To help us set this up it would be greatly appreciated if you could star the repository since one of the requirements to set up an account on Open Collective is to have 100 stars.

Server OS Upgrade

I had planned to upgrade the server in August, but y'know... life. Anyway, I'm tentatively planning to upgrade Metron's operating system on November 16th, so there might be some downtime (most likely a few hours) when I do that. I'll post a notification on the site for the week leading to the upgrade.

MetronInfo.xml

The last couple of months there has been a bunch of work done on finalizing the MetronInfo.xsd by Joe, AJ, Buried-In-Code and myself, and I believe there are just a couple of outstanding items that need a resolution. Once that is done, I'll write up a announcement blog post.

Anyway, that's all I've got for this month. Take care!

Publisher Imprint Support

One min read
Brian Pepple
Founder of the Metron Project / Code Monkey

Spent the weekend working on finally adding support for Publisher's imprints. Before this, Metron simply lumped Publishers and Imprint together under the Publisher views which was not ideal, but this change will allow them to be separated.

New views, filters, and API endpoints have been added for this feature, so if you see anything missing or behaving not as expected, please open a bug report.

Series detail for Afterlife with Archie. Show new imprint information.

In addition, I've released new version of Darkseid, Mokarri, and Metron-Tagger that add support for imprints. And as always, if you discover any bugs, it would be appreciated if you opened a report in the appropriate git repository.

Anyway, that's all I got for now. Take care!

July 2024 Update

2 min read
Brian Pepple
Founder of the Metron Project / Code Monkey

Monthly Statistics

During July the Metron Project added the following to its database:

  • Users: 47
  • Issues: 1,940
  • Creators: 71
  • Characters: 329

Thanks to everyone that contributed!

More Database Series Type Changes

Made a couple of changes to some Series Type names on Metron based on some suggestions from Buried-In-Code over on Matrix. They include:

  • Change Digital Chapters to Digital Chapter
  • Change Hard Cover to Hardcover

If you wish to update your existing ComicInfo.xml metadata, I've released a new version of Karkas that addresses these changes. You can download this version from this link, and just install it by running:

pipx install /path/to/karkas-1.2.0-py3-none-any.whl

Then just run:

karkas /path/to/comics

Server OS Upgrade

I'm tentatively planning to upgrade Metron's operating system later this month, so there might be some downtime (most likely a few hours) when I do that. Once I have a better idea what changes this version has (PostgreSQL-16.2, Python-3.12, etc.) I'll have a better idea the work involved. Regardless, I'll post a notification on the site for the week leading to the upgrade, which most likely will occur on a Saturday.

Anyway, that's all I've got for this month. Take care!

MetronInfo.xml

2 min read
Brian Pepple
Founder of the Metron Project / Code Monkey

So, one of the new projects I've been working on in my spare time is a new comic book xml schema called MetronInfo.

Currently, most applications use ComicInfo which originated from the ComicRack application, but due to it's history this format has some limitations like:

  • Poor handling of data. For example, cover date information that is split into separate integer types, instead of just using a date type.
  • Limited types metadata stored. For example, when tagging a comic book archive with an application like ComicTagger it would be useful to know where the metadata information was retrieved from (i.e. Comic Vine, GCD, Metron, etc.) and the resources identification number.
  • Lack of documentation. The Anansi Project is working on improving this, tho.

For now, the Anansi Project is working on documenting and extending (non-breaking changes) the ComicInfo schema, but in my opinion that time spent would be better spent on creating a new format not tied to a dead application. Due to the fairly unstructured nature of comic book archives it's trivial to tag one with the existing ComicInfo format and also a new format. That way users who use applications that only support ComicInfo.xml can still use them, but also gives them the option to use applications that could support the MetronInfo format.

My goals for MetronInfo.xml are:

  • Fix some of the deficiencies of the ComicInfo format.
  • Add information to make it easier for Plex-like application to identify data (series, character, etc/) when importing comics into their application.
  • Document the elements clearly so their use is not ambiguous.

Currently I'm working right now on finalizing the new format, and would appreciate any help or feedback from the comic book community in this. Feel free to leave suggestions either at the Discussions Page or contact use over on Matrix.

Once the new format is finalized I plan on writing a tool that will create a MetronInfo.xml file for any existing comic book archive that was tagged with ComicTagger or Metron-Tagger, and also retrieve any missing data from the source of information (Metron or Comic Vine).