Class AgrovocService

  • All Implemented Interfaces:
    edu.cornell.mannlib.semservices.service.ExternalConceptService

    public class AgrovocService
    extends Object
    implements edu.cornell.mannlib.semservices.service.ExternalConceptService
    • Constructor Detail

      • AgrovocService

        public AgrovocService()
    • Method Detail

      • getConcepts

        public List<edu.cornell.mannlib.semservices.bo.Concept> getConcepts​(String term)
                                                                     throws Exception
        Specified by:
        getConcepts in interface edu.cornell.mannlib.semservices.service.ExternalConceptService
        Throws:
        Exception
      • processResults

        public List<edu.cornell.mannlib.semservices.bo.Concept> processResults​(String term)
                                                                        throws Exception
        Specified by:
        processResults in interface edu.cornell.mannlib.semservices.service.ExternalConceptService
        Throws:
        Exception
      • createConcept

        public edu.cornell.mannlib.semservices.bo.Concept createConcept​(String bestMatch,
                                                                        String skosConceptURI)
      • getConceptsByURIWithSparql

        public List<edu.cornell.mannlib.semservices.bo.Concept> getConceptsByURIWithSparql​(String uri)
                                                                                    throws Exception
        Specified by:
        getConceptsByURIWithSparql in interface edu.cornell.mannlib.semservices.service.ExternalConceptService
        Throws:
        Exception
      • getConceptURIFromRDF

        protected String getConceptURIFromRDF​(String rdf)
      • getConceptURIsListFromRDF

        protected List<String> getConceptURIsListFromRDF​(String rdf)
      • stripConceptId

        protected String stripConceptId​(String uri)
        Parameters:
        uri - The URI
      • extractConceptId

        protected String extractConceptId​(String str)
        Parameters:
        str - The String