示例#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 GetURI(ClassificationSystems classSystem, string classNotation)
        {
            switch (classSystem)
            {
            case ClassificationSystems.rvk:
                return(RvkClassificationSystemClient.GetURI(classNotation));

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

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

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

            default:
                return("");
            }
        }