eu.monnetproject.lemon.impl
Class SPARQLResolver

java.lang.Object
  extended by eu.monnetproject.lemon.impl.SPARQLResolver
All Implemented Interfaces:
LexiconResolver, RemoteResolver

public class SPARQLResolver
extends Object
implements RemoteResolver, LexiconResolver

Author:
John McCrae

Constructor Summary
SPARQLResolver(URL endpoint, Set<URI> graphs, LinguisticOntology lingOnto)
           
 
Method Summary
 Set<URI> getLexica()
           
<Elem extends LemonElementOrPredicate>
Iterator<Elem>
query(Class<Elem> target, String query, LemonModelImpl model)
           
 void resolveRemote(LemonModelImpl model, LemonElementImpl<?> element, int depth)
           
 void resolveRemoteFiltered(LemonModelImpl model, URI property, LemonElementImpl<?> element)
           
<T> List<T>
resolveRemoteList(Object identifier, Class<T> clazz, LemonModelImpl model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPARQLResolver

public SPARQLResolver(URL endpoint,
                      Set<URI> graphs,
                      LinguisticOntology lingOnto)
Method Detail

resolveRemote

public void resolveRemote(LemonModelImpl model,
                          LemonElementImpl<?> element,
                          int depth)
Specified by:
resolveRemote in interface RemoteResolver

resolveRemoteFiltered

public void resolveRemoteFiltered(LemonModelImpl model,
                                  URI property,
                                  LemonElementImpl<?> element)
Specified by:
resolveRemoteFiltered in interface RemoteResolver

resolveRemoteList

public <T> List<T> resolveRemoteList(Object identifier,
                                     Class<T> clazz,
                                     LemonModelImpl model)
Specified by:
resolveRemoteList in interface RemoteResolver

getLexica

public Set<URI> getLexica()
Specified by:
getLexica in interface LexiconResolver

query

public <Elem extends LemonElementOrPredicate> Iterator<Elem> query(Class<Elem> target,
                                                                   String query,
                                                                   LemonModelImpl model)
                                                     throws IOException,
                                                            ParserConfigurationException,
                                                            SAXException
Throws:
IOException
ParserConfigurationException
SAXException


Copyright © 2012. All Rights Reserved.