public class AdvancedKBInfo extends KBInfo implements Serializable
| Modifier and Type | Field and Description |
|---|---|
List<String> |
classes |
endpoint, functions, graph, id, maxoffset, minoffset, optionalProperties, pageSize, prefixes, properties, restrictions, type, var| Constructor and Description |
|---|
AdvancedKBInfo(KBInfo kb)
Creates a copy of a KBInfo instance and returns it as AdvancedKBInfo
|
AdvancedKBInfo(String id,
String endpoint,
String var,
String graph)
Creates an instance of this class without restrictions.
|
AdvancedKBInfo(String id,
String endpoint,
String var,
String graph,
List<String> properties,
Collection<Restriction> restrictions,
HashMap<String,String> prefixes,
int pageSize) |
AdvancedKBInfo(String id,
String endpoint,
String var,
String graph,
String restrictionProperty,
String restrictionObject)
Creates an instance of this class with a single restriction property and
object.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
expandPrefix(String url,
Map<String,String> prefixes)
Example: "rdfs:label" ->
"http://www.w3.org/2000/01/rdf-schema#label".
|
void |
expandPrefixes(Map<String,String> prefixes)
Like
expandPrefix(String, Map) but does this for all properties
in the knowledge base. |
String |
getRestrictionQuerySubstring() |
addOptionalProperty, addProperty, addRestriction, afterPropertiesSet, equals, getClassOfendpoint, getClassOfendpoint, getClassRestriction, getEndpoint, getFunctions, getGraph, getId, getMaxOffset, getMinOffset, getOptionalProperties, getPageSize, getPrefix, getPrefixes, getProperties, getRestrictions, getType, getVar, hashCode, setEndpoint, setFunctions, setGraph, setId, setMaxOffset, setMinOffset, setOptionalProperties, setPageSize, setPrefixes, setProperties, setRestrictions, setType, setVar, toStringpublic AdvancedKBInfo(KBInfo kb)
kb - the original KBInfopublic AdvancedKBInfo(String id, String endpoint, String var, String graph, List<String> properties, Collection<Restriction> restrictions, HashMap<String,String> prefixes, int pageSize)
public AdvancedKBInfo(String id, String endpoint, String var, String graph)
id - idendpoint - endpointvar - vargraph - graphpublic AdvancedKBInfo(String id, String endpoint, String var, String graph, String restrictionProperty, String restrictionObject)
id - idendpoint - endpointvar - vargraph - graphrestrictionProperty - restrictionPropertyrestrictionObject - restrictionObjectpublic static String expandPrefix(String url, Map<String,String> prefixes)
url - urlprefixes - prefixespublic void expandPrefixes(Map<String,String> prefixes)
expandPrefix(String, Map) but does this for all properties
in the knowledge base.prefixes - A map with prefixes as keys and their corresponding full uris
as values.<br/ > Example:
map.put("rdfs","http://www.w3.org/2000/01/rdf-schema#");public String getRestrictionQuerySubstring()
Copyright © 2018. All rights reserved.