public class Program<Node> extends Object implements LDPathConstruct<Node>
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
DEFAULT_NAMESPACES |
static String |
DOCUMENT_BOOST_TYPE |
Constructor and Description |
---|
Program() |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(FieldMapping<?,Node> mapping) |
void |
addNamespace(String prefix,
String uri) |
Map<String,Collection<?>> |
execute(RDFBackend<Node> backend,
Node context)
Executes this Program on the parsed
backend . |
Map<String,Collection<?>> |
execute(RDFBackend<Node> backend,
Node context,
Map<Node,List<Node>> paths)
Executes this Program on the parsed
backend . |
FieldMapping<Float,Node> |
getBooster() |
FieldMapping<?,Node> |
getField(String name) |
Set<FieldMapping<?,Node>> |
getFields() |
NodeTest<Node> |
getFilter() |
URI[] |
getGraphArr() |
Set<URI> |
getGraphs() |
Map<String,String> |
getNamespaces() |
String |
getPathExpression(NodeBackend<Node> backend)
Return the representation of the NodeFunction or NodeSelector in the RDF Path Language
|
void |
setBooster(FieldMapping<Float,Node> boost) |
void |
setFields(Set<FieldMapping<?,Node>> fields) |
void |
setFilter(NodeTest<Node> filter) |
void |
setGraphs(Collection<URI> graphs) |
void |
setNamespaces(Map<String,String> namespaces) |
public static final String DOCUMENT_BOOST_TYPE
public void addMapping(FieldMapping<?,Node> mapping)
public Set<FieldMapping<?,Node>> getFields()
public FieldMapping<?,Node> getField(String name)
public void setFields(Set<FieldMapping<?,Node>> fields)
public FieldMapping<Float,Node> getBooster()
public void setBooster(FieldMapping<Float,Node> boost)
public URI[] getGraphArr()
public void setGraphs(Collection<URI> graphs)
public Map<String,Collection<?>> execute(RDFBackend<Node> backend, Node context)
backend
.context
- The context of the executionpublic Map<String,Collection<?>> execute(RDFBackend<Node> backend, Node context, Map<Node,List<Node>> paths)
backend
.context
- The context of the executionpublic String getPathExpression(NodeBackend<Node> backend)
LDPathConstruct
getPathExpression
in interface LDPathConstruct<Node>
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.