Class FederationDescriptionReader
java.lang.Object
se.liu.ida.hefquin.engine.federation.catalog.FederationDescriptionReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FederationMember
createBRTPFServer
(String uri, VocabularyMapping vm) protected FederationMember
createGraphQLServer
(String uri, VocabularyMapping vm) protected FederationMember
createNeo4jServer
(String uri, VocabularyMapping vm) protected FederationMember
createSPARQLEndpoint
(String uri, VocabularyMapping vm) protected FederationMember
createTPFServer
(String uri, VocabularyMapping vm) parseFedDescr
(String filename) parseFedDescr
(org.apache.jena.rdf.model.Model fd) protected VocabularyMapping
parseVocabMapping
(org.apache.jena.rdf.model.Resource fm, org.apache.jena.rdf.model.Model fd) Attempts to retrieve and parse the vocabulary mapping associated with the given RDF resourcefm
, representing aFederationMember
, in the given federation descriptionfd
.static FederationCatalog
readFromFile
(String filename) static FederationCatalog
readFromModel
(org.apache.jena.rdf.model.Model fd) protected URI
verifyExpectedURI
(String uriString) Verifies that the given string represents an HTTP URI or an HTTPS URI and, if so, returns that URI.
-
Field Details
-
instance
-
-
Constructor Details
-
FederationDescriptionReader
protected FederationDescriptionReader()
-
-
Method Details
-
readFromFile
-
readFromModel
-
parseFedDescr
-
parseFedDescr
-
parseVocabMapping
protected VocabularyMapping parseVocabMapping(org.apache.jena.rdf.model.Resource fm, org.apache.jena.rdf.model.Model fd) Attempts to retrieve and parse the vocabulary mapping associated with the given RDF resourcefm
, representing aFederationMember
, in the given federation descriptionfd
. The method attempts to load the vocabulary mapping from the specified path or URL and caches the result for reuse. If no vocabulary mappings file is present, the method returnsnull
.- Parameters:
fm
- RDF resource for the federation memberfd
- RDF model of the federation description- Returns:
- parsed
VocabularyMapping
, ornull
if not specified - Throws:
IllegalArgumentException
- if the mapping file cannot be loaded or parsed
-
createSPARQLEndpoint
-
createTPFServer
-
createBRTPFServer
-
createNeo4jServer
-
createGraphQLServer
-
verifyExpectedURI
-