Example #1
0
    public void topicType(String uri, Set<String> parentTypeURIs, NamesMap names) {
      System.out.println(
          "Topic type: "
              + GeoSkillsUtil.shortenName(uri, ontBaseU)
              + " of types "
              + GeoSkillsUtil.shortenName(parentTypeURIs, ontBaseU)
              + ": ");
      outputNames(names);
      assertNoDuplicateNames(names, uri);

      assertNoDuplicateURIs(uri);
    }
Example #2
0
    public void competencyType(String uri, Set<String> parentTypeURIs, NamesMap names) {
      String s = GeoSkillsUtil.shortenName(uri, ontBaseU);
      if ("#Competency".equals(s)) baseCompetencyProcessIsHere = true;
      System.out.println(
          "Competency type: "
              + s
              + " of types "
              + GeoSkillsUtil.shortenName(parentTypeURIs, ontBaseU)
              + ": ");
      outputNames(names);
      assertNoDuplicateNames(names, uri);

      assertNoDuplicateURIs(uri);
    }
Example #3
0
    public void competencyDescription(
        String uri,
        Set<String> parentTypeURIs,
        Set<String> hasTopicsURIs,
        NamesMap names,
        ModificationData mData) {
      String s = GeoSkillsUtil.shortenName(uri, ontBaseU);
      System.out.println(
          "Competency: "
              + s
              + " of types "
              + GeoSkillsUtil.shortenName(parentTypeURIs, ontBaseU)
              + ": ");
      if ("#grouin".equals(s)) grouinIsHere = true;
      outputNames(names);
      System.out.println("Topics: " + GeoSkillsUtil.shortenName(hasTopicsURIs, ontBaseU));
      assertNoDuplicateNames(names, uri);

      assertNoDuplicateURIs(uri);
    }
Example #4
0
 public void topicDescription(
     String uri, Set<String> parentTypeURIs, NamesMap names, ModificationData mData) {
   String s = GeoSkillsUtil.shortenName(uri, ontBaseU);
   if ("#Topic_r".equals(s)) baseTopicIsHere = true;
   System.out.println(
       "Topic : "
           + s
           + " of types "
           + GeoSkillsUtil.shortenName(parentTypeURIs, ontBaseU)
           + ": ");
   outputNames(names);
   assertNoDuplicateNames(names, uri);
   assertNoDuplicateURIs(uri);
   if (mData != null) {
     if (mData.getModificationDate() != null) {
       System.out.println("Modification date: " + mData.getModificationDate());
       foundModificationDate = true;
       assertEquals(
           "Modification date should be 12-12-08", 11, mData.getModificationDate().getMonth());
     }
   }
 }
Example #5
0
 public void thereIsItem(String uri, NodeType type) {
   System.out.println(
       "There is item: " + GeoSkillsUtil.shortenName(uri, ontBaseU) + " of type " + type + ".");
 }