Java Code Examples for org.apache.jena.ontology.DatatypeProperty#addComment()
The following examples show how to use
org.apache.jena.ontology.DatatypeProperty#addComment() .
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: OwlSchemaFactory.java From baleen with Apache License 2.0 | 5 votes |
private void addProperty( OntModel ontModel, OntClass domain, String name, String comment, Resource range) { DatatypeProperty begin = ontModel.createDatatypeProperty(namespace + name); begin.addComment(comment, EN); begin.addDomain(domain); begin.addRange(range); }
Example 2
Source File: OwlSchemaFactory.java From baleen with Apache License 2.0 | 5 votes |
private void addFeature(OntModel ontModel, OntClass ontClass, FeatureDescription feature) { if (ontModel.getDatatypeProperty(namespace + feature.getName()) == null) { DatatypeProperty property = ontModel.createDatatypeProperty(namespace + feature.getName()); String propertyComment = feature.getDescription(); if (propertyComment != null) { property.addComment(propertyComment, EN); } property.addDomain(ontClass); property.addRange(getRange(feature)); } }
Example 3
Source File: OwlSchemaFactory.java From baleen with Apache License 2.0 | 4 votes |
private void addProperty(OntModel ontModel, String name, String comment, Resource range) { DatatypeProperty begin = ontModel.createDatatypeProperty(namespace + name); begin.addComment(comment, EN); begin.addRange(range); }