<commit_before>package fi.aluesarjat.prototype;

import org.openrdf.model.vocabulary.RDFS;
import org.openrdf.query.QueryLanguage;
import org.openrdf.query.TupleQuery;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.result.TupleResult;
import org.openrdf.store.StoreException;

import virtuoso.sesame3.driver.VirtuosoRepository;

public class VirtuosoQueryTest {
    
    public static void main(String[] args) throws StoreException{
        Repository repository = new VirtuosoRepository("localhost:1111", "dba", "dba");
        repository.initialize();
        RepositoryConnection conn = repository.getConnection();
        try{
            TupleQuery query = conn.prepareTupleQuery(QueryLanguage.SPARQL, "select ?s ?p ?o where { ?s ?p ?o } limit 5");
            query.setBinding("p", RDFS.LABEL);
            TupleResult result = query.evaluate();
            try{
                while (result.hasNext()){
                    System.out.println(result.asList());
                }    
            }finally{
                result.close();    
            }

        }finally{
            conn.close();
            repository.shutDown();
        }
    }

}<commit_msg>fixed failing test<commit_after>package fi.aluesarjat.prototype;

import org.junit.Ignore;
import org.openrdf.model.vocabulary.RDFS;
import org.openrdf.query.QueryLanguage;
import org.openrdf.query.TupleQuery;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.result.TupleResult;
import org.openrdf.store.StoreException;

import virtuoso.sesame3.driver.VirtuosoRepository;

@Ignore
public class VirtuosoQueryTest {
    
    public static void main(String[] args) throws StoreException{
        Repository repository = new VirtuosoRepository("localhost:1111", "dba", "dba");
        repository.initialize();
        RepositoryConnection conn = repository.getConnection();
        try{
            TupleQuery query = conn.prepareTupleQuery(QueryLanguage.SPARQL, "select ?s ?p ?o where { ?s ?p ?o } limit 5");
            query.setBinding("p", RDFS.LABEL);
            TupleResult result = query.evaluate();
            try{
                while (result.hasNext()){
                    System.out.println(result.asList());
                }    
            }finally{
                result.close();    
            }

        }finally{
            conn.close();
            repository.shutDown();
        }
    }

}
{'fraction_non_alphanumeric': 0.10819411296738266, 'fraction_numerical': 0.00477326968973747, 'mean_word_length': 2.4930555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3138137', 'n_tokens_mistral': 736, 'n_tokens_neox': 698, 'n_words': 137}