/** * Extract the VoID summary of the known data sets. * * @return The VoID summary of the known data sets. * * @throws Exception */ protected Map<Resource, VoidSummary> getRepositoryDescriptions() throws Exception { // The discovered data sets. final Map<Resource, VoidSummary> summaries = new LinkedHashMap<Resource, VoidSummary>(); // Do the discovery. final Graph g = RemoteRepository.asGraph(m_mgr .getRepositoryDescriptions()); final Statement[] a = getMatches(g, null/* dataset */, RDF.TYPE, VoidVocabularyDecl.Dataset); for (Statement x : a) { // The RDF Value used to model a data set. final Resource dataset = x.getSubject(); // Extract a summary of that data set from the graph. summaries.put(dataset, new VoidSummary(dataset, g)); } return summaries; }
/** * Extract the VoID summary of the known data sets. * * @return The VoID summary of the known data sets. * * @throws Exception */ protected Map<Resource, VoidSummary> getRepositoryDescriptions() throws Exception { // The discovered data sets. final Map<Resource, VoidSummary> summaries = new LinkedHashMap<Resource, VoidSummary>(); // Do the discovery. final Graph g = RemoteRepository.asGraph(m_mgr .getRepositoryDescriptions()); final Statement[] a = getMatches(g, null/* dataset */, RDF.TYPE, VoidVocabularyDecl.Dataset); for (Statement x : a) { // The RDF Value used to model a data set. final Resource dataset = x.getSubject(); // Extract a summary of that data set from the graph. summaries.put(dataset, new VoidSummary(dataset, g)); } return summaries; }
RemoteRepository.asGraph(tmp.getServiceDescription());
.asGraph(m_repo.getServiceDescription());
RemoteRepository.asGraph(tmp.getServiceDescription());
.asGraph(m_repo.getServiceDescription());