org.semanticweb.owlapi.model.OWLObjectCardinalityRestriction Java Examples
The following examples show how to use
org.semanticweb.owlapi.model.OWLObjectCardinalityRestriction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GraphOwlVisitor.java From SciGraph with Apache License 2.0 | 5 votes |
long addCardinalityRestriction(OWLObjectCardinalityRestriction desc) { long restriction = getOrCreateNode(getIri(desc), OwlLabels.OWL_ANONYMOUS); graph.setNodeProperty(restriction, "cardinality", desc.getCardinality()); long property = getOrCreateNode(getIri(desc.getProperty())); getOrCreateRelationship(restriction, property, OwlRelationships.PROPERTY); long cls = getOrCreateNode(getIri(desc.getFiller())); getOrCreateRelationship(restriction, cls, OwlRelationships.CLASS); return restriction; }