Search Mailing List Archives
[protege-dev] How to display the "property" on webprotege
matthew.horridge at stanford.edu
Mon May 11 15:16:17 PDT 2015
You need to add a SubClassOf axiom where athing is the subclass and “row some xsd:string” is the superclass.
In OWL it looks like this:
SubClassOf( :athing DataSomeValuesFrom( :row xsd:string))
In turtle (RDF triples) like this:
:athing rdf:type owl:Class ;
rdfs:label “athing” ;
rdf:type owl:Restriction ;
owl:onProperty :row ;
You should make sure that :row is typed as a data property.
:row rdf:type owl:DatatypeProperty .
Hope this helps.
> On 11 May 2015, at 14:46, mywbob <mywbob at gmail.com> wrote:
> Hello all,
> I am new to webprotege. I want to generate some file that can be upload to
> webprotege to shown the example in the figure using Jena.
> note the "row" and "string" are displayed on the property section.
> I am able to make Java program to add "row" as dataproperty or
> objectproperty(using Jena) and I can see them under the property tab. But I
> just cannot figure out how to display this property like the way shown in
> the figure.
> any Java code example to generate something shown in the figure are welcome.
> Thank You!
> View this message in context: http://protege-project.136.n4.nabble.com/How-to-display-the-property-on-webprotege-tp4662927.html
> Sent from the Protege Developer mailing list archive at Nabble.com.
> protege-dev mailing list
> protege-dev at lists.stanford.edu
More information about the protege-dev