if(site.getConfiguration().getLicenses() != null){ for(License license : site.getConfiguration().getLicenses()){ if(license.getUrl() == null){ count++;
names[i] = licenses[i].getName(); texts[i] = licenses[i].getText(); urls[i] = licenses[i].getUrl(); } else { throw new IllegalArgumentException("The parsed License array" +
names[i] = licenses[i].getName(); texts[i] = licenses[i].getText(); urls[i] = licenses[i].getUrl(); } else { throw new IllegalArgumentException("The parsed License array" +
private Representation license2Representation(String id, License license) { RdfValueFactory valueFactory = RdfValueFactory.getInstance(); RdfRepresentation rep = valueFactory.createRepresentation(id); if(license.getName() != null){ rep.add("http://purl.org/dc/terms/license", license.getName()); rep.add("http://www.w3.org/2000/01/rdf-schema#label", license.getName()); rep.add("http://purl.org/dc/terms/title", license.getName()); } if(license.getText() != null){ rep.add("http://www.w3.org/2000/01/rdf-schema#description", license.getText()); } rep.add("http://creativecommons.org/ns#licenseUrl", license.getUrl() == null ? id:license.getUrl()); return rep; }