Skip to content

Commit 15da318

Browse files
author
Olaf Hartig
committed
made 'IDataSource' and extension of the 'Closeable' interface
1 parent 7988775 commit 15da318

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/org/linkeddatafragments/datasource/DataSource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ public String getDescription() {
3737
public String getTitle() {
3838
return this.title;
3939
};
40+
41+
@Override
42+
public void close() {}
4043
}

src/org/linkeddatafragments/datasource/IDataSource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.linkeddatafragments.datasource;
22

3+
import java.io.Closeable;
4+
35
import com.hp.hpl.jena.rdf.model.Property;
46
import com.hp.hpl.jena.rdf.model.RDFNode;
57
import com.hp.hpl.jena.rdf.model.Resource;
@@ -8,7 +10,7 @@
810
* A data source of Basic Linked Data Fragments.
911
* @author Ruben Verborgh
1012
*/
11-
public interface IDataSource {
13+
public interface IDataSource extends Closeable {
1214
/**
1315
* Gets a page of the Basic Linked Data Fragment matching the specified triple pattern.
1416
* @param subject the subject (null to match any subject)

0 commit comments

Comments
 (0)