1 |
8498
|
leinfelder
|
package edu.ucsb.nceas.metacat.index.annotation;
|
2 |
|
|
|
3 |
|
|
import java.util.List;
|
4 |
|
|
|
5 |
|
|
import javax.xml.xpath.XPath;
|
6 |
|
|
|
7 |
|
|
import org.dataone.cn.indexer.parser.ISolrField;
|
8 |
|
|
import org.dataone.cn.indexer.solrhttp.SolrElementField;
|
9 |
|
|
import org.w3c.dom.Document;
|
10 |
|
|
|
11 |
|
|
public class SparqlField implements ISolrField {
|
12 |
|
|
|
13 |
|
|
private String name;
|
14 |
|
|
|
15 |
|
|
private String query;
|
16 |
|
|
|
17 |
|
|
public SparqlField(String name, String query) {
|
18 |
|
|
this.name = name;
|
19 |
|
|
this.query = query;
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
public String getName() {
|
23 |
|
|
return name;
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
public void setName(String name) {
|
27 |
|
|
this.name = name;
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
public String getQuery() {
|
31 |
|
|
return query;
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
public void setQuery(String query) {
|
35 |
|
|
this.query = query;
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
@Override
|
39 |
|
|
public List<SolrElementField> getFields(Document arg0, String arg1)
|
40 |
|
|
throws Exception {
|
41 |
|
|
// TODO Auto-generated method stub
|
42 |
|
|
return null;
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
@Override
|
46 |
|
|
public void initExpression(XPath arg0) {
|
47 |
|
|
// TODO Auto-generated method stub
|
48 |
|
|
|
49 |
|
|
}
|
50 |
|
|
|
51 |
|
|
}
|