Skip to content

JsonLd processor for android(Includes URDNA2015 algorithm)

License

Notifications You must be signed in to change notification settings

boumba100/JsonldAndroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonldAndroid

This is a Java/Android implementation of the JSON-LD specification and the JSON-LD-API specification. The main structure of the project has been taken from https://github.com/jsonld-java/jsonld-java. This project has been altered to support android devices and also now includes the URDNA2015 algorithm for normalization.

Include the project into your application

In Android Studio

Click File → New → Import Module and select the jsonldAndroid module.

The step above will add ':jsonldAndroid' to the settings.gradle file as shown below.

include ':app', ':jsonldAndroid'

To compile the library in your application simply add this line to the project's build.gradle file.

dependencies {
	...
compile project(':jsonldAndroid')
	...
}

Example code

Object document = JsonUtils.fromString(jsonObject.toString());

new JsonNormalizer(document, new JsonNormalizer.OnNormalizedCompleted() {
   @Override
   public void OnNormalizedComplete(Object object) {
       String normalized = (String) object;
   }
}).execute();

About

JsonLd processor for android(Includes URDNA2015 algorithm)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages