Examples of AddAssertion


Examples of org.semanticweb.skos.AddAssertion

    List<SKOSChange> skosChanges = new ArrayList<SKOSChange>();

    // entities:
    List<SKOSEntityAssertion> entityAssertions = dataFactory.getSKOSEntityAssertions(allEntities);
    for (SKOSEntityAssertion ass : entityAssertions) {
      skosChanges.add(new AddAssertion(dataset, ass));
    }

    // skos:inScheme
    objectRelationAssertions.addAll(
      dataFactory.getSKOSObjectRelationAssertions(concepts, dataFactory.getSKOSInSchemeProperty(), conceptScheme)
    );

    // object relations:
    for (SKOSObjectRelationAssertion assertion : objectRelationAssertions) {
      skosChanges.add(new AddAssertion(dataset, assertion));
    }

    // data relations:
    for (SKOSDataRelationAssertion assertion : dataRelationAssertions) {
      skosChanges.add(new AddAssertion(dataset, assertion));
    }
   
    manager.applyChanges(skosChanges);
   
   
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.