public static boolean isRelativeIri(String value) { if (!(isKeyword(value) || isAbsoluteIri(value))) { return true; } return false; }
public static boolean isRelativeIri(String value) { if (!(isKeyword(value) || isAbsoluteIri(value))) { return true; } return false; }
/** * Retrieve container mapping. * * @param property * The Property to get a container mapping for. * @return The container mapping */ public String getContainer(String property) { if ("@graph".equals(property)) { return "@set"; } if (JsonLdUtils.isKeyword(property)) { return property; } final Map<String, Object> td = (Map<String, Object>) termDefinitions.get(property); if (td == null) { return null; } return (String) td.get("@container"); }
public static boolean isRelativeIri(String value) { if (!(isKeyword(value) || isAbsoluteIri(value))) { return true; } return false; }
/** * Retrieve container mapping. * * @param property * The Property to get a container mapping for. * @return The container mapping if any, else null */ public String getContainer(String property) { if (property == null) { return null; } if (JsonLdConsts.GRAPH.equals(property)) { return JsonLdConsts.SET; } if (!property.equals(JsonLdConsts.TYPE) && JsonLdUtils.isKeyword(property)) { return property; } final Map<String, Object> td = (Map<String, Object>) termDefinitions.get(property); if (td == null) { return null; } return (String) td.get(JsonLdConsts.CONTAINER); }
/** * Retrieve container mapping. * * @param property * The Property to get a container mapping for. * @return The container mapping if any, else null */ public String getContainer(String property) { if (property == null) { return null; } if (JsonLdConsts.GRAPH.equals(property)) { return JsonLdConsts.SET; } if (!property.equals(JsonLdConsts.TYPE) && JsonLdUtils.isKeyword(property)) { return property; } final Map<String, Object> td = (Map<String, Object>) termDefinitions.get(property); if (td == null) { return null; } return (String) td.get(JsonLdConsts.CONTAINER); }
private class EmbedNode { public Object parent = null; public String property = null; public EmbedNode(Object parent, String property) { this.parent = parent; this.property = property; } }
private class EmbedNode { public Object parent = null; public String property = null; public EmbedNode(Object parent, String property) { this.parent = parent; this.property = property; } }
if ("@id".equals(key) || !isKeyword(key) && !(node.containsKey(key))) { return false;
if ("@type".equals(property)) { property = RDF_TYPE; } else if (isKeyword(property)) { continue;
defn.put("@type", JsonLdUtils.isKeyword(typeMapping) ? typeMapping : compactIri(typeMapping, true));
defn.put(JsonLdConsts.TYPE, JsonLdUtils.isKeyword(typeMapping) ? typeMapping : compactIri(typeMapping, true));
defn.put(JsonLdConsts.TYPE, JsonLdUtils.isKeyword(typeMapping) ? typeMapping : compactIri(typeMapping, true));
Map<String, Boolean> defined) throws JsonLdError { if (value == null || JsonLdUtils.isKeyword(value)) { return value;
Map<String, Boolean> defined) throws JsonLdError { if (value == null || JsonLdUtils.isKeyword(value)) { return value;
Map<String, Boolean> defined) throws JsonLdError { if (value == null || JsonLdUtils.isKeyword(value)) { return value;
} else { } else if (!isKeyword(stringStringEntry.getKey())) { setNamespace(stringStringEntry.getKey(), val);
if (isKeyword(stringObjectEntry.getKey())) { ((Map<String, Object>) o).put(stringObjectEntry.getKey(), JsonLdUtils.clone(stringObjectEntry.getValue())); continue;
} else { } else if (!isKeyword(key)) { setNamespace(key, val);
} else { } else if (!isKeyword(key)) { setNamespace(key, val);