Skip to main content

GS1 Vocabulary RDFLib Namespace Implementation

Welcome to the GS1 Vocabulary RDFLib Namespace Implementation library! This library provides a convenient way to work with the GS1 Web Vocabulary using RDFLib, a powerful library for working with RDF in Python.

Features

  • Easy Integration: Seamlessly integrate the GS1 Vocabulary into your RDFLib projects.
  • Comprehensive Coverage: Access all terms defined in the GS1 Web Vocabulary.
  • Developer-Friendly: Simplifies working with GS1 terms in your RDF graphs.

Installation

Install the library via pip:

pip install rdflib-gs1

Usage

Here's a quick example of how to use the GS1 Vocabulary with RDFLib: python

import rdflib
from rdflib_gs1.namespace import GS1

# Create a graph
g = rdflib.Graph()

# Create RDF nodes using the GS1 namespace
product = rdflib.URIRef(GS1.Product)
productID = rdflib.URIRef(GS1.productID)
productName = rdflib.Literal("Example Product")

# Add triples to the graph
g.add((product, rdflib.RDF.type, GS1.Product))
g.add((product, productID, rdflib.Literal("1234567890123")))
g.add((product, GS1.productName, productName))

# Serialize the graph to RDF/XML
print(g.serialize(format='xml').decode('utf-8'))

Contributing

We welcome contributions from the community! Please read our Contributing Guide for guidelines on how to contribute. License

This project is licensed under the MIT License. See the LICENSE file for details. About WordLift

WordLift is passionate about contributing to open source projects and enhancing the accessibility and usability of semantic web technologies. As a proud GS1 partner, WordLift is committed to providing high-quality tools and libraries to the community.

Thank you for using the GS1 Vocabulary RDFLib Namespace Implementation library! If you have any questions or feedback, please feel free to open an issue or reach out to us.

Metadata

Release files for rdflib-gs1 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rdflib-gs1 0.1.2
File Size Uploaded
rdflib_gs1-0.1.2.tar.gz 117.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rdflib-gs1 0.1.2
File Interpreter ABI Platform
rdflib_gs1-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 234.8 kB

Release files / rdflib_gs1-0.1.2.tar.gz

Download URL rdflib_gs1-0.1.2.tar.gz
Size 117.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e25cfd20b1fbbe47a2fc7e2d56ae5ec6b5248fd7c3c8258d862ae591837954a4
BLAKE2b-256 checksum
How to use checksums
baf557217e2ce46de154b0dfaad1afc2b3c69e64ce57b85240abc6b78d854569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / rdflib_gs1-0.1.2-py3-none-any.whl

Download URL rdflib_gs1-0.1.2-py3-none-any.whl
Size 117.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
419f464756f6145df7943eb203dd82e7223906cff083b7366a2ceaf692ecce76
BLAKE2b-256 checksum
How to use checksums
8339ca721bf77ec41a787ea6d8a48a46010c33da8e9fc96e7034025742a779f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page