GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jsonld-java/jsonld-java-clerezza: Integration of JSONLD-Java with Clerezza

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

JSONLD-Java Clerezza Integration module

Build Status Coverage Status

This module provide a ParsingProviderand SerializingProvider for Apache Clerezza. Those Providers plug into the Clerezza Parser and Serializer service infrastructure. Meaning that adding this bundle will allow Clerezza to parse and serialize JSON-LD.

USAGE

From Maven

<dependency>
    <groupId>com.github.jsonld-java</groupId>
    <artifactId>jsonld-java-clerezza</artifactId>
    <version>0.12.0</version>
</dependency>

(Adjust for most recent , as found in pom.xml).

ClerezzaTripleCallback

The ClerezzaTripleCallback returns an instance of org.apache.clerezza.commons.rdf.Graph

See ClerezzaTripleCallbackTest.java for example Usage.

From OSGI

Assuming the above Bundle is active in the OSGI Environment one can simple inject the Serializer and/or Parser service.

@Reference
private Serializer serializer;

@Reference
private Parser parser;

Normal Java

Both the Parser and Serializer also support java.util.ServiceLoader. So when running outside an OSGI environment one can use the getInstance() to obtain an instance.

Serializer serializer = Serializer.getInstance();

Parser parser = Parser.getInstance();

Supported Formats

The JSON-LD parser implementation supports application/ld+json. The serializer supports both application/ld+json and application/json.

The rational behind this is that the parser can not parse any JSON however the Serializer does generate valid JSON.

About

Integration of JSONLD-Java with Clerezza

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

3 stars

Watchers

3 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.