/** * {@inheritDoc} */ @Override public void parse(final String... fileNames) { // note if we will load a single file _loadSingleFile = fileNames.length == 1; super.parse(fileNames); }
/** * {@inheritDoc} */ @Override public void parse(final String... fileNames) { // note if we will load a single file _loadSingleFile = fileNames.length == 1; super.parse(fileNames); }
/** * {@inheritDoc} */ @Override public void parse(final String... fileNames) { // note if we will load a single file _loadSingleFile = fileNames.length == 1; super.parse(fileNames); }
/** * Convenience function to {@link #clear() clear}, {@link #parse(String...) parse}, {@link #load() load}, and {@link #getKB()}. Note: this method previously * accepted a list of regular expressions instead of file URIs. This behavior has been changed as of 2.0.0-rc7. * * @param fileNameList list of file URIs * @return KnowledgeBase instance with the given ontologies loaded * @see FileUtils#getFileURIs(String...) */ public KnowledgeBase createKB(final String... fileNameList) { clear(); parse(fileNameList); load(); return getKB(); }
/** * Convenience function to {@link #clear() clear}, {@link #parse(String...) parse}, {@link #load() load}, and {@link #getKB()}. Note: this method previously * accepted a list of regular expressions instead of file URIs. This behavior has been changed as of 2.0.0-rc7. * * @param fileNameList list of file URIs * @return KnowledgeBase instance with the given ontologies loaded * @see FileUtils#getFileURIs(String...) */ public KnowledgeBase createKB(final String... fileNameList) { clear(); parse(fileNameList); load(); return getKB(); }
loader.parse(FileUtils.getFileURIsFromRegex(files).toArray(new String[0])); break;