1 | package hozo.sparql;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 | import java.util.Map;
|
---|
5 |
|
---|
6 | import com.hp.hpl.jena.rdf.model.RDFNode;
|
---|
7 |
|
---|
8 | public interface SparqlAccessor {
|
---|
9 |
|
---|
10 | /** 繧ュ繝シ繝ッ繝シ繝画、懃エ「縺ァ縲��岼縺吶∋縺ヲ繧呈、懃エ「蟇セ雎。縺ィ縺吶k�域悴螳溯」�シ�*/
|
---|
11 | public static final int FIND_TARGET_ALL = 0;
|
---|
12 | /** 繧ュ繝シ繝ッ繝シ繝画、懃エ「縺ァ縲《ubject繧呈、懃エ「蟇セ雎。縺ィ縺吶k */
|
---|
13 | public static final int FIND_TARGET_SUBJECT = 1;
|
---|
14 | /** 繧ュ繝シ繝ッ繝シ繝画、懃エ「縺ァ縲{bject繧呈、懃エ「蟇セ雎。縺ィ縺吶k */
|
---|
15 | public static final int FIND_TARGET_OBJECT = 2;
|
---|
16 | /** 繧ュ繝シ繝ッ繝シ繝画、懃エ「縺ァ縲√Λ繝吶Νobject繧呈、懃エ「蟇セ雎。縺ィ縺吶k */
|
---|
17 | public static final int FIND_TARGET_SPECIFIC_OBJECT = 3;
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Sparql Query繧堤峩謗・謖�ョ壹@縺ヲ螳溯。後@縲∫オ先棡繧定ソ斐☆
|
---|
21 | * @param queryString
|
---|
22 | * @return
|
---|
23 | * @throws Exception
|
---|
24 | */
|
---|
25 | public List<Map<String, RDFNode>> executeQuery(String queryString) throws Exception;
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * 譁�ュ怜�縺ォ隧イ蠖薙☆繧鬼ubject繧呈、懃エ「縺励※邨先棡繧定ソ斐☆
|
---|
29 | * @param word
|
---|
30 | * @param fullMatch
|
---|
31 | * @param limit
|
---|
32 | * @param offset
|
---|
33 | * @param type
|
---|
34 | * @return
|
---|
35 | * @throws Exception
|
---|
36 | */
|
---|
37 | public SparqlResultSet findSubject(String word, boolean fullMatch, Integer limit, Integer offset, int type, String[] propList) throws Exception;
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * Subject縺ォ繝偵ャ繝医☆繧亀riple繧呈、懃エ「縺励※邨先棡繧定ソ斐☆
|
---|
41 | * @param subject
|
---|
42 | * @return
|
---|
43 | * @throws Exception
|
---|
44 | */
|
---|
45 | public List<Map<String, RDFNode>> findTripleFromSubject(String subject) throws Exception;
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * property縺ョ荳隕ァ繧貞叙蠕励☆繧� |
---|
49 | * @return
|
---|
50 | * @throws Exception
|
---|
51 | */
|
---|
52 | public List<Map<String, RDFNode>> findPropertyList() throws Exception;
|
---|
53 |
|
---|
54 | }
|
---|