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

com.welemski.gobblerparty.model.PuddleConcept Maven / Gradle / Ivy

Go to download

GobblerParty is an extension of Gobbler that contains convenience classes and methods for talking to PoolParty webservices: Thesaurus, Extractor, SPARQL end point etc. This library also provides a convenient class for building SPARQL query so that you can parameterized it.

There is a newer version: 1.1.10
Show newest version
/*
 * The MIT License
 *
 * Copyright 2016 welemski.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.welemski.gobblerparty.model;

import com.welemski.gobblerparty.transformer.GPSPARQLXMLConceptFilter;
import com.welemski.gobblerparty.transformer.GPSimpleSPARQLFieldFilter;
import com.welemski.wrench.StrDictionary;
import java.util.List;

/**
 *
 * @author welemski
 */
public interface PuddleConcept {

    public String getURI();

    public GPConcept setURI(String uri);

    public String getPrefLabel();

    public GPConcept setPrefLabel(String prefLabel);

    public List getAltLabels();

    public GPConcept setAltLabels(List altLabels);

    public List getHiddenLabels();

    public GPConcept setHiddenLabels(List hiddenLabels);

    public List getBroaders();

    public GPConcept setBroaders(List broaders);

    public GPConcept setBroaders(String... broaders);

    public List getNarrowers();

    public GPConcept setNarrowers(List narrowers);

    public GPConcept setNarrowers(String... narrowers);

    public List getConceptSchemes();

    public GPConcept setConceptSchemes(List conceptSchemes);

    public List getInSchemes();

    public GPConcept setInSchemes(List inSchemes);

    public List getTopConceptOf();

    public GPConcept setTopConceptOf(List topConceptOf);

    /**
     * The properties returned from PoolParty JSON object using PoolParty's
     * standard API is stored as a key-value pair. All other properties returned
     * from using SPARQL end points are stored inside a key named "attributes".
     * See {@link GPSimpleSPARQLFieldFilter GPSimpleSPARQLFieldFilter} class. To
     * control what fields to store into what key, use
     * {@link GPSPARQLXMLConceptFilter GPSPARQLXMLConceptFilter} class and fine
     * tune the field to filter.
     *
     * @return StrDictionary
     */
    public StrDictionary getProperties();

    public GPConcept setProperties(StrDictionary properties);

    public StrDictionary getAttributes();

    public GPConcept setAttributes(StrDictionary attributes);

    public List getChildren();

    public GPConcept setChildren(List children);
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy