Skip to content

decentralized-identity/jsonld-common-java

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

jsonld-common-java

Information

This is an implementation of helper objects and functions for JSON-LD documents.

Maven

Build:

mvn clean install

Dependency:

<repositories>
	<repository>
		<id>danubetech-maven-public</id>
		<url>https://repo.danubetech.com/repository/maven-public/</url>
	</repository>
</repositories>

<dependency>
	<groupId>decentralized-identity</groupId>
	<artifactId>jsonld-common-java</artifactId>
	<version>1.0.0</version>
</dependency>

Example

Example code:

JsonLDObject jsonLdObject = JsonLDObject.fromJson(new FileReader("input.jsonld"));

JsonLDObject jsonLdObject2 = JsonLDObject.builder()
        .context(URI.create("https://example.com/mycontext/1.0"))
        .type("SampleDocument")
        .build();

JsonLDUtils.jsonLdAdd(jsonLdObject, "property", jsonLdObject2);

System.out.println(jsonLdObject.toJson(true));

About

Decentralized Identity Foundation - https://identity.foundation/


This software library is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 871932