Ejemplo n.º 1
0
        public override string GetPreferredLabel(string classNotation)
        {
            try
            {
                string[] res;

                DdcReasoner.rs.Apply(this.LDGraph());
                res = this.LDGraph().ObjectOf(DdcClassificationSystemClient.GetURI(classNotation), DdcClassificationSystemClient.GetPredicate(ClassificationPredicates.preferred_label));
                return(res[0]);
            }
            catch
            {
                return("");
            }
        }
        static public string AdaptClassNotation(ClassificationSystems classSystem, string classNotation)
        {
            switch (classSystem)
            {
            case ClassificationSystems.rvk:
                return(RvkClassificationSystemClient.AdaptClassNotation(classNotation));

            case ClassificationSystems.jel:
                return(JelClassificationSystemClient.AdaptClassNotation(classNotation));

            case ClassificationSystems.rq:
                return(RqClassificationSystemClient.AdaptClassNotation(classNotation));

            case ClassificationSystems.ddc:
                return(DdcClassificationSystemClient.AdaptClassNotation(classNotation));

            default:
                return(classNotation);
            }
        }