Class FederationDescriptionReader
java.lang.Object
se.liu.ida.hefquin.engine.federation.catalog.FederationDescriptionReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FederationMembercreateBRTPFServer(String uri, VocabularyMapping vm) protected FederationMembercreateGraphQLServer(String uri, VocabularyMapping vm) protected FederationMembercreateNeo4jServer(String uri, VocabularyMapping vm) protected FederationMembercreateSPARQLEndpoint(String uri, VocabularyMapping vm) protected FederationMembercreateTPFServer(String uri, VocabularyMapping vm) parseFedDescr(String filename) parseFedDescr(org.apache.jena.rdf.model.Model fd) protected VocabularyMappingparseVocabMapping(org.apache.jena.rdf.model.Resource fm, org.apache.jena.rdf.model.Model fd) Checks whether given RDF resource (fm) representing a federation member is associated with a vocabulary mapping in the given federation description (fd) and, if so, parses this vocabulary mapping and returns it.static FederationCatalogreadFromFile(String filename) static FederationCatalogreadFromModel(org.apache.jena.rdf.model.Model fd) protected URIverifyExpectedURI(String uriString) Verifies that the given string represents an HTTP URI or an HTTPS URI and, if so, returns that URI.protected booleanverifyValidVocabMappingFile(String pathToMappingFile) Verifies that the file at the given path exists.
-
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) Checks whether given RDF resource (fm) representing a federation member is associated with a vocabulary mapping in the given federation description (fd) and, if so, parses this vocabulary mapping and returns it. Otherwise, this function returnsnull. -
createSPARQLEndpoint
-
createTPFServer
-
createBRTPFServer
-
createNeo4jServer
-
createGraphQLServer
-
verifyValidVocabMappingFile
Verifies that the file at the given path exists. -
verifyExpectedURI
Verifies that the given string represents an HTTP URI or an HTTPS URI and, if so, returns that URI.
-