All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.inria.edelweiss.kgdqp.core.Result Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.inria.edelweiss.kgdqp.core;

import fr.inria.edelweiss.kgram.api.core.Entity;
import fr.inria.edelweiss.kgram.core.Mappings;
import java.util.ArrayList;

/**
 * Helper class to provide the endpoint of provenance and to handle the retrieving of results in:
 * Iterable for getEdges()
 * Mappings for getMappings()
 * 
 * @author Abdoul Macina, [email protected]
 */
public class Result {
    private Iterable entities;
    private Mappings mappings;
    private RemoteProducerWSImpl producer;

    public Result( RemoteProducerWSImpl producer) {
        this.entities = new ArrayList();
        this.producer = producer;
        this.mappings = new Mappings();
    }

    public Iterable getEntities() {
        return entities;
    }

    public RemoteProducerWSImpl getProducer() {
        return producer;
    }

    public void setEntities(Iterable entities) {
        this.entities = entities;
    }

    public void setProducer(RemoteProducerWSImpl producer) {
        this.producer = producer;
    }

    public Mappings getMappings() {
        return mappings;
    }

    public void setMappings(Mappings mappings) {
        this.mappings = mappings;
    }
    
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy