public class EntityDefinition extends Object
| Constructor and Description |
|---|
EntityDefinition(String entityField,
String primaryField) |
EntityDefinition(String entityField,
String primaryField,
com.hp.hpl.jena.graph.Node primaryPredicate) |
EntityDefinition(String entityField,
String primaryField,
com.hp.hpl.jena.rdf.model.Resource primaryPredicate) |
EntityDefinition(String entityField,
String primaryField,
String graphField) |
EntityDefinition(String entityField,
String primaryField,
String graphField,
com.hp.hpl.jena.graph.Node primaryPredicate) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
fields() |
String |
getEntityField() |
String |
getField(com.hp.hpl.jena.graph.Node predicate) |
String |
getGraphField() |
Collection<com.hp.hpl.jena.graph.Node> |
getPredicates(String field) |
String |
getPrimaryField() |
com.hp.hpl.jena.graph.Node |
getPrimaryPredicate() |
void |
set(String field,
com.hp.hpl.jena.graph.Node predicate) |
String |
toString() |
public EntityDefinition(String entityField, String primaryField)
entityField - The entity being indexed (e.g. it's URI).primaryField - The primary/default field to searchpublic EntityDefinition(String entityField, String primaryField, String graphField)
entityField - The entity being indexed (e.g. it's URI).primaryField - The primary/default field to searchgraphField - The field that stores graph URI, or nullpublic EntityDefinition(String entityField, String primaryField, com.hp.hpl.jena.rdf.model.Resource primaryPredicate)
entityField - The entity being indexed (e.g. it's URI).primaryField - The primary/default field to searchprimaryPredicate - The property associated with the primary/default fieldpublic EntityDefinition(String entityField, String primaryField, com.hp.hpl.jena.graph.Node primaryPredicate)
entityField - The entity being indexed (e.g. it's URI).primaryField - The primary/default field to searchprimaryPredicate - The property associated with the primary/default fieldpublic EntityDefinition(String entityField, String primaryField, String graphField, com.hp.hpl.jena.graph.Node primaryPredicate)
entityField - The entity being indexed (e.g. it's URI).primaryField - The primary/default field to searchgraphField - The field that stores graph URI, or nullprimaryPredicate - The property associated with the primary/default fieldpublic String getEntityField()
public void set(String field, com.hp.hpl.jena.graph.Node predicate)
public Collection<com.hp.hpl.jena.graph.Node> getPredicates(String field)
public String getField(com.hp.hpl.jena.graph.Node predicate)
public String getPrimaryField()
public com.hp.hpl.jena.graph.Node getPrimaryPredicate()
public String getGraphField()
public Collection<String> fields()
Licenced under the Apache License, Version 2.0