1
0
Fork
You've already forked codemeta-server
0
Server for codemeta, in memory triple store, SPARQL endpoint and simple web-based visualisation for end-user
  • Python 93.5%
  • Makefile 6.5%
Find a file
2025年08月18日 20:05:33 +02:00
codemeta_server version bump 2025年08月18日 20:05:33 +02:00
.gitignore added gitignore 2023年05月10日 00:11:23 +02:00
codemeta.json version bump 2025年08月18日 20:05:33 +02:00
LICENSE added license 2022年03月25日 21:46:00 +01:00
Makefile expanded tests 2022年11月09日 12:45:04 +01:00
README.md README: update 2023年05月15日 15:28:06 +02:00
requirements.txt updated for codemeta v3.0 2025年03月07日 13:10:16 +01:00
screenshot_index_cards.jpg added README with screenshots 2022年05月17日 13:53:12 +02:00
screenshot_index_table.jpg added README with screenshots 2022年05月17日 13:53:12 +02:00
screenshot_page.jpg added README with screenshots 2022年05月17日 13:53:12 +02:00
screenshot_sparql.jpg added README with screenshots 2022年05月17日 13:53:12 +02:00
setup.py version bump 2025年08月18日 20:05:33 +02:00

Project Status: Active -- The project has reached a stable, usable state and is being actively developed. Latest release in the Python Package Index

Codemeta Server

Codemeta server provides a simple portal to software tools, based on software metadata in codemeta and schema.org. It is implemented as an in-memory RDF triple store and provides an API (including SPARQL endpoint) for querying. It builds upon the codemeta2html and codemetapy libraries, which implement most of the functionality. Automatic harvesting of software metadata can be accomplished via codemeta-harvester.

Note: If you want a static site instead of a triple-store backed web application, then you dont need codemeta-server and can just use codemeta2html.

Features:

  • Web-user interface for end-users (i.e. everything from codemeta2html):
    • rich RDFa data (codemeta/schema.org/etc) embedded in the HTML, expressing as much of the input linked data as possible. This means though we visualise for humans, we do not sacrifice on machine parsability and semantic interpretability.
    • index pages (card view & table view)
    • one dedicated page per software source project
    • client-side filtering (faceted search) capabilities
    • direct access to the underlying JSON-LD and Turtle serialisations per source project and for the complete data graph as a whole
    • responsive layout suitable for different devices and screen-sizes
    • Integrates some badges (aka shields) like for GitHub, Repostatus
    • minimal amount of external web calls (only for github/gitlab badges and for external resources references directly by the software metadata itself)
    • minimal client-side javascript, also usable without (except for filtering)
  • Simple server-side search/query facilities
  • Advanced query facilities using SPARQL:
    • SPARQL endpoint
    • YASGUI front-end for end-users.
  • JSON-LD and turtle serialisations for all data, full support for content negotiation
  • Supports various extensions to codemeta:

This software is developed in the scope of the CLARIAH-PLUS project, a Dockerfile for the CLARIAH Tool Discovery pipeline, including both the harvester and this server and API powering the CLARIAH Tool Store, can be found here: https://github.com/CLARIAH/tool-discovery .

Installation

pip install codemeta-server

Usage

In development scenarios, you can run codemeta-server as follows: codemeta-server --graph data.json --baseuri http://localhost:8080/ --baseurl http://localhost:8080/ --port 8080 Check codemeta-server --help for help on all the options.

The file data.json is produced by codemetapy (possibly via codemeta-harvester and contains the full linked data graph of all tools you want to show. Say you have codemeta.json files for two resources, then you can use codemetapy to create a graph as follows:

codemetapy --baseuri http://localhost:8080/ --graph resource1.codemeta.json resource2.codemeta.json > data.json

If you have no codemeta files at all yet, then still you can use codemetapy (via codemeta-harvester to automatically extract metadata from other known schemas.

For production scenarios, you'll want to run codemeta-server via WSGI/ASGI, check the Dockerfile in https://github.com/CLARIAH/tool-discovery .

Screenshots

Excerpt of a tool index in the default 'card' view:

Index - card view

Excerpt of a tool index in the table view:

Index - table view

An example page for a specific tool:

Tool page

The SPARQL frontend (Yasgui):

SPARQL frontend