Skip to content

Commit bbb2a67

Browse files
authored
Merge pull request #25 from spdx/repdeprecated
Replace RDF FileManager with RDFDataMgr
2 parents f071902 + b7c0a24 commit bbb2a67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/spdx/spdxRdfStore/RdfStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import org.apache.jena.query.ARQ;
4141
import org.apache.jena.rdf.model.Model;
4242
import org.apache.jena.rdf.model.ModelFactory;
43-
import org.apache.jena.util.FileManager;
43+
import org.apache.jena.riot.RDFDataMgr;
4444
import org.apache.jena.util.iterator.ExtendedIterator;
4545
import org.slf4j.Logger;
4646
import org.slf4j.LoggerFactory;
@@ -442,7 +442,7 @@ public IModelStoreLock enterCriticalSection(String documentUri, boolean readLock
442442
* @throws IOException
443443
*/
444444
public String loadModelFromFile(String fileNameOrUrl, boolean overwrite) throws InvalidSPDXAnalysisException, IOException {
445-
InputStream spdxRdfInput = FileManager.get().open(fileNameOrUrl);
445+
InputStream spdxRdfInput = RDFDataMgr.open(fileNameOrUrl);
446446
if (Objects.isNull(spdxRdfInput)) {
447447
throw new FileNotFoundException(fileNameOrUrl + " not found.");
448448
}

0 commit comments

Comments
 (0)