public class KBM extends Object
Constructor and Description |
---|
KBM(String name)
Creates a new KBM with name "name".
|
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(String endpoint)
Add a new endpoint in a KBM.
|
void |
addEnrichingTemplateQuery(TemplateQuery enrichingQuery)
Add a new enriching template query in a KBM.
|
void |
addLinkingTemplateQuery(TemplateQuery linkingQuery)
Add a new linking template query in a KBM.
|
void |
addResourceClass(ResourceClass resourceClass)
Add a new Resource Class in a KBM.
|
void |
addSPARQLQuery(SPARQLQuery query)
Add a new SPARQL query in a KBM.
|
String |
getEndpoint()
Gets the endpoint of a KBM.
|
TreeMap<String,TemplateQuery> |
getEnrichingTemplateQueries()
Gets the enriching template queries of a KBM.
|
TemplateQuery |
getEnrichingTemplateQuery(String id)
Gets the enriching template query with id "id" of a KBM.
|
TreeMap<String,TemplateQuery> |
getLinkingTemplateQueries()
Gets the linking template queries of a KBM.
|
TemplateQuery |
getLinkingTemplateQuery(String id)
Gets the linking template query with id "id" of a KBM.
|
String |
getName()
Gets the name of the KBM.
|
ResourceClass |
getResourceClass(String id)
Gets the Resource Class with id "id" of a KBM.
|
TreeMap<String,ResourceClass> |
getResourceClasses()
Gets the Resource Classes of a KBM.
|
TreeMap<String,SPARQLQuery> |
getSPARQLQueries()
Gets the SPARQL queries of a KBM.
|
SPARQLQuery |
getSPARQLQuery(String id)
Gets the SPARQL query with id "id" of a KBM.
|
void |
removeEndpoint()
Removes the endpoint of a KBM.
|
void |
removeEnrichingTemplateQuery(String enrichingQuery)
Removes an enriching template query of a KBM.
|
void |
removeLinkingTemplateQuery(String linkingQuery)
Removes a linking template query of a KBM.
|
void |
removeResourceClass(String resourceClass)
Removes a resource class of a KBM.
|
void |
removeSPARQLQuery(String query)
Removes a SPARQL query of a KBM.
|
ArrayList<Triple> |
runEnrichingTemplateQuery(TemplateQuery query,
String URI)
Runs a template query and returns a List of Triples come from the URI "URI".
|
Set<String> |
runLinkingTemplateQuery(TemplateQuery query,
Entity entity)
Runs a template query and returns a Set of URIs that concerns an entity "entity".
|
TreeSet<String> |
runResourceClassQuery(ResourceClass resourceClass)
Runs a SPARQL query with a Resource Class and returns a Set of named entities.
|
TreeSet<String> |
runSPARQLQuery(SPARQLQuery query)
Runs a SPARQL query and returns a Set of named entities.
|
void |
setEndpoint(String endpoint)
Sets/Changes the endpoint of a KBM.
|
void |
setEnrichingTemplateQueries(TreeMap<String,TemplateQuery> enrichingTemplateQueries)
Sets/Changes a Map of enriching template queries in a KBM.
|
void |
setLinkingTemplateQueries(TreeMap<String,TemplateQuery> linkingTemplateQueries)
Sets/Changes the Map of linking template queries in a KBM.
|
void |
setName(String name)
Sets/Changes the name of a KBM.
|
void |
setResourceClasses(TreeMap<String,ResourceClass> resourceClasses)
Sets/Changes the Map of Resource Classes in a KBM.
|
void |
setSPARQLQueries(TreeMap<String,SPARQLQuery> SparqlQueries)
Sets/Changes the Map of SPARQL queries in a KBM.
|
public KBM(String name)
name
- The name of the KBM.public void addResourceClass(ResourceClass resourceClass)
resourceClass
- The new Resource Class.public void addEndpoint(String endpoint)
endpoint
- The new Resource Class.public void addEnrichingTemplateQuery(TemplateQuery enrichingQuery)
enrichingQuery
- The new enriching template query.public void addLinkingTemplateQuery(TemplateQuery linkingQuery)
linkingQuery
- The new linking template query.public void addSPARQLQuery(SPARQLQuery query)
query
- The new SPARQL query.public void removeResourceClass(String resourceClass)
resourceClass
- The id of the resource class that we want to remove.public void removeEndpoint()
public void removeEnrichingTemplateQuery(String enrichingQuery)
enrichingQuery
- The id of the enriching template query that we want to remove.public void removeLinkingTemplateQuery(String linkingQuery)
linkingQuery
- The id of the linking template query that we want to remove.public void removeSPARQLQuery(String query)
query
- The id of the SPARQL query that we want to remove.public String getName()
public void setName(String name)
name
- The name of a KBM.public TreeMap<String,ResourceClass> getResourceClasses()
public void setResourceClasses(TreeMap<String,ResourceClass> resourceClasses)
resourceClasses
- The Map of the Resource Classes.public String getEndpoint()
public void setEndpoint(String endpoint)
endpoint
- The endpoint.public TreeMap<String,TemplateQuery> getEnrichingTemplateQueries()
public void setEnrichingTemplateQueries(TreeMap<String,TemplateQuery> enrichingTemplateQueries)
enrichingTemplateQueries
- The map of enriching template queries.public TreeMap<String,TemplateQuery> getLinkingTemplateQueries()
public void setLinkingTemplateQueries(TreeMap<String,TemplateQuery> linkingTemplateQueries)
linkingTemplateQueries
- The map of linking template queries.public TreeMap<String,SPARQLQuery> getSPARQLQueries()
public void setSPARQLQueries(TreeMap<String,SPARQLQuery> SparqlQueries)
SparqlQueries
- The map of SPARQL queries.public TemplateQuery getLinkingTemplateQuery(String id)
id
- The id of the linking template query.public TemplateQuery getEnrichingTemplateQuery(String id)
id
- The id of the enriching template query.public SPARQLQuery getSPARQLQuery(String id)
id
- The id of the SPARQL query.public ResourceClass getResourceClass(String id)
id
- The id of the Resource Class.public TreeSet<String> runSPARQLQuery(SPARQLQuery query)
query
- A SPARQL query.public Set<String> runLinkingTemplateQuery(TemplateQuery query, Entity entity)
query
- A template queryentity
- The entity which URIs we want to find.public ArrayList<Triple> runEnrichingTemplateQuery(TemplateQuery query, String URI)
query
- A template queryURI
- The URI from which we extract the Triples.public TreeSet<String> runResourceClassQuery(ResourceClass resourceClass)
resourceClass
- A Resource Class.Copyright © 2014. All rights reserved.