Package fi.luomus.commons.containers

Examples of fi.luomus.commons.containers.Qname


      .addParameter("predicate", "rdf:type")
      .addParameter("object", "dc:BibliographicResource");

      Document doc = client.contentAsDocument(new HttpGet(uri.getURI()));
      for (Node node : doc.getRootNode().getChildNodes()) {
        Qname id = getObjectResourceQname(node);
        LocalizedText name = getNames(node);
        Qname rootTaxon = getRooTaxonOrNull(node);
        Qname owner = getOwnerOrNull(node);
        boolean isPublic = getPublicityDefaultToTrue(node);
        Checklist checklist = new Checklist(id, name, rootTaxon);
        checklist.setPublic(isPublic);
        if (owner != null) {
          checklist.setOwner(owner);
View Full Code Here


      String attribute = "rdf:resource";
      if (node.hasAttribute("rdf:about")) {
        attribute = "rdf:about";
      }
      String qname = node.getAttribute(attribute).replace("http://id.luomus.fi/", "");
      return new Qname(qname);
     
    }
View Full Code Here

      }
      return name;
    }
    private Qname getRooTaxonOrNull(Node node) {
      if (node.hasChildNodes("MR.rootTaxon")) {
        return new Qname(node.getNode("MR.rootTaxon").getAttribute("rdf:resource"));
      }
      return null;
    }
View Full Code Here

        String id = node.getAttribute("rdf:about").replace("http://id.luomus.fi/", "");
        String fullname = null;
        if (node.hasChildNodes("MA.fullName")) {
          fullname = node.getNode("MA.fullName").getContents();
        }
        Person person = new Person(new Qname(id), fullname);
        persons.put(id, person);
      }
      return persons;
    }
View Full Code Here

TOP

Related Classes of fi.luomus.commons.containers.Qname

Copyright © 2018 www.massapicom. 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.