Expanded bnode list Option by daltontc · Pull Request #335 · jsonld-java/jsonld-java · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 59 additions & 58 deletions core/src/main/java/com/github/jsonldjava/core/JsonLdApi.java
10 changes: 10 additions & 0 deletions core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public JsonLdOptions copy() {
copy.setPruneBlankNodeIdentifiers(pruneBlankNodeIdentifiers);
copy.setRequireAll(requireAll);
copy.setAllowContainerSetOnType(allowContainerSetOnType);
copy.setExpandBNodeList(expandBNodeList);
copy.setUseRdfType(useRdfType);
copy.setUseNativeTypes(useNativeTypes);
copy.setProduceGeneralizedRdf(produceGeneralizedRdf);
Expand Down Expand Up @@ -102,6 +103,7 @@ public JsonLdOptions copy() {
private Boolean pruneBlankNodeIdentifiers = false;
private Boolean requireAll = false;
private Boolean allowContainerSetOnType = false;
private Boolean expandBNodeList = false;

// RDF conversion options :
// http://www.w3.org/TR/json-ld-api/#serialize-rdf-as-json-ld-algorithm
Expand Down Expand Up @@ -225,6 +227,14 @@ public void setAllowContainerSetOnType(Boolean allowContainerSetOnType) {
this.allowContainerSetOnType = allowContainerSetOnType;
}

public Boolean getExpandBNodeList() {
return expandBNodeList;
}

public void setExpandBNodeList(Boolean expandBNodeList) {
this.expandBNodeList = expandBNodeList;
}

public Boolean getCompactArrays() {
return compactArrays;
}
Expand Down
36 changes: 36 additions & 0 deletions core/src/test/java/com/github/jsonldjava/core/JsonLdToRdfTest.java