Skip to main content

The GS1 Web Vocabulary as an rdflib namespace.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdflib_gs1-0.1.2.tar.gz (117.1 kB view details)

Uploaded Source

Built Distribution

rdflib_gs1-0.1.2-py3-none-any.whl (117.7 kB view details)

Uploaded Python 3

File details

Details for the file rdflib_gs1-0.1.2.tar.gz.

File metadata

  • Download URL: rdflib_gs1-0.1.2.tar.gz
  • Upload date:
  • Size: 117.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for rdflib_gs1-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e25cfd20b1fbbe47a2fc7e2d56ae5ec6b5248fd7c3c8258d862ae591837954a4
MD5 1405cc1e76ca601d461c09ff35e4e380
BLAKE2b-256 baf557217e2ce46de154b0dfaad1afc2b3c69e64ce57b85240abc6b78d854569

See more details on using hashes here.

File details

Details for the file rdflib_gs1-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rdflib_gs1-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for rdflib_gs1-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 419f464756f6145df7943eb203dd82e7223906cff083b7366a2ceaf692ecce76
MD5 cedd8924df7d6d082eefc68fd9d40681
BLAKE2b-256 8339ca721bf77ec41a787ea6d8a48a46010c33da8e9fc96e7034025742a779f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page