public class ResourceShapeParserJson extends Object implements org.aksw.gson.utils.JsonVisitor<Void>
| Modifier and Type | Field and Description |
|---|---|
protected ResourceShapeBuilder |
builder |
| Constructor and Description |
|---|
ResourceShapeParserJson() |
ResourceShapeParserJson(org.apache.jena.shared.PrefixMapping prefixMapping) |
ResourceShapeParserJson(org.apache.jena.sparql.core.Prologue prologue) |
ResourceShapeParserJson(ResourceShapeBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
ResourceShapeBuilder |
getBuilder() |
static ResourceShape |
parse(com.google.gson.JsonElement json) |
static ResourceShape |
parse(com.google.gson.JsonElement json,
ResourceShapeBuilder builder) |
static StepRelation |
parseStep(String str,
org.apache.jena.shared.PrefixMapping prefixMapping)
String must be of format
[-] [~] str
-: If present, assume inverse direction
~: If present, str is assumed to be a SPARQL expression.
|
Void |
visit(com.google.gson.JsonArray json) |
Void |
visit(com.google.gson.JsonNull json) |
Void |
visit(com.google.gson.JsonObject json) |
Void |
visit(com.google.gson.JsonPrimitive json) |
protected ResourceShapeBuilder builder
public ResourceShapeParserJson()
public ResourceShapeParserJson(org.apache.jena.shared.PrefixMapping prefixMapping)
public ResourceShapeParserJson(org.apache.jena.sparql.core.Prologue prologue)
public ResourceShapeParserJson(ResourceShapeBuilder builder)
public ResourceShapeBuilder getBuilder()
public static StepRelation parseStep(String str, org.apache.jena.shared.PrefixMapping prefixMapping)
str - public static ResourceShape parse(com.google.gson.JsonElement json)
public static ResourceShape parse(com.google.gson.JsonElement json, ResourceShapeBuilder builder)
public Void visit(com.google.gson.JsonNull json)
visit in interface org.aksw.gson.utils.JsonVisitor<Void>public Void visit(com.google.gson.JsonObject json)
visit in interface org.aksw.gson.utils.JsonVisitor<Void>public Void visit(com.google.gson.JsonArray json)
visit in interface org.aksw.gson.utils.JsonVisitor<Void>Copyright © 2016. All rights reserved.