Examples of RDFResource


Examples of edu.stanford.smi.protegex.owl.model.RDFResource

    public static void getCategoryDetails() {
        RDFSNamedClass category = icdContentModel.getICDCategory("http://who.int/icd#Class_2751");
        System.out.println("Displayed as in the tree: " + category.getBrowserText());

        RDFResource defTerm = icdContentModel.getTerm(category, icdContentModel.getDefinitionProperty());
        if (defTerm != null) {
            String definition = (String) defTerm.getPropertyValue(icdContentModel.getLabelProperty());

            String rubricId = (String) defTerm.getPropertyValue(icdContentModel.getIdProperty());
            System.out.println("Definition rubric id: " + rubricId);
            System.out.println("Definition: " + definition);

        }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        RDFSNamedClass category = icdContentModel.getICDCategory("http://who.int/icd#H34.2");
        System.out.println("\n" + category.getBrowserText());

       Collection<RDFResource> linearizationSpecs = icdContentModel.getLinearizationSpecifications(category);
       for (RDFResource linearizationSpec : linearizationSpecs) {
           RDFResource linearization = (RDFResource) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationViewProperty());
           RDFSNamedClass linearizationParent = (RDFSNamedClass) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationParentProperty());
           Boolean isIncludedInLinearization = (Boolean) linearizationSpec.getPropertyValue(icdContentModel.getIsIncludedInLinearizationProperty());
           String linSortingLabel = (String) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationSortingLabelProperty());
          

          
          
           System.out.println("Linearization: " + linearization.getBrowserText() +
                   "; is included: " + (isIncludedInLinearization == null ? "(not specified)" : isIncludedInLinearization) +
                   "; linearization parent: " + linearizationParent.getBrowserText() +
                   "; linearization sorting label: " + (linSortingLabel == null ? "(not specified)" : linSortingLabel));
       }
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

    private static RDFSNamedClass getLinearizationParentForType(RDFSNamedClass icdCategory, String type){
      RDFSNamedClass ret = null;
        Collection<RDFResource> linearizationSpecs = icdContentModel.getLinearizationSpecifications(icdCategory);
        for (RDFResource linearizationSpec : linearizationSpecs) {
            RDFResource linearization = (RDFResource) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationViewProperty());
            RDFSNamedClass linearizationParent = (RDFSNamedClass) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationParentProperty());
            Boolean isIncludedInLinearization = (Boolean) linearizationSpec.getPropertyValue(icdContentModel.getIsIncludedInLinearizationProperty());
           
            if(linearization.getBrowserText().equals(type)){
              ret = linearizationParent;
              break;
            }

        }    
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

            parseDefinition(cls, id, labelElement);
        }
    }

    private void parseDefinition(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createDefinitionTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addDefinitionTermToClass(cls, term);
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        parseLabel(cls, term, id, labelElement);
        icdContentModel.addDefinitionTermToClass(cls, term);
    }

    private void parsePreferred(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createTitleTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addTitleTermToClass(cls, term);
        //add also the rdfs:label as the code + title for BioPortal
        icdContentModel.addRdfsLabel(cls);
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        //add also the rdfs:label as the code + title for BioPortal
        icdContentModel.addRdfsLabel(cls);
    }

    private void parseInclusion(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createInclusionTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addInclusionTermToClass(cls, term);
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        parseLabel(cls, term, id, labelElement);
        icdContentModel.addInclusionTermToClass(cls, term);
    }

    private void parseExclusion(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createExclusionTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addExclusionTermToClass(cls, term);
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        parseLabel(cls, term, id, labelElement);
        icdContentModel.addExclusionTermToClass(cls, term);
    }

    private void parseCodingHint(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createICD10NotesTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addCodingHintToClass(cls, term);
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        parseLabel(cls, term, id, labelElement);
        icdContentModel.addCodingHintToClass(cls, term);
    }

    private void parseIntroduction(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createICD10NotesTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addIntroductionToClass(cls, term);
    }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.RDFResource

        parseLabel(cls, term, id, labelElement);
        icdContentModel.addIntroductionToClass(cls, term);
    }

    private void parseNote(RDFSNamedClass cls, String id, Element labelElement) {
        RDFResource term = icdContentModel.createICD10NotesTerm();
        parseLabel(cls, term, id, labelElement);
        icdContentModel.addNotesToClass(cls, term);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.