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

org.nlp2rdf.nif21.impl.NIF21Resource Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package org.nlp2rdf.nif21.impl;


import com.hp.hpl.jena.rdf.model.Model;
import org.nlp2rdf.NIFResource;
import org.nlp2rdf.NIFVisitor;
import org.nlp2rdf.bean.NIFContext;
import org.nlp2rdf.nif21.NIF21Format;

public class NIF21Resource implements NIFResource, NIF21Format {

    public void add(Model model, NIFContext context) {
        if (model != null) {

            model.createResource(context.getCollection());

            model.createResource(context.getNIF21());
        }
    }

    public void accept(NIFVisitor visitor) {
        visitor.visit(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy