Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] How to get property assertions

Thomas Russ tar at isi.edu
Tue Aug 31 11:43:47 PDT 2010


On Aug 31, 2010, at 9:35 AM, Ishan wrote:

>
> Thanks for the early reply..
>
> I tired that method for individual "pica" as:
>
> RDFProperty pr = owlModel.getRDFProperty("rdf:symbol");
> RDFIndividual.getPropertyValue(pr);
   ^^^^^^^^^^^^

You need to put the actual RDFIndividual instance here and not the  
class name.  So you want the variable that points to the individual  
"pica".


>
> but it gives a warning and error saying:
> WARNING: Invalid frame type:
> DefaultRDFIndividual(http://data.nasa.gov/qudt/owl/unit#Pica of
> [DefaultRDFSNamedClass(http://data.nasa.gov/qudt/owl/qudt#LengthUnit),
> DefaultRDFSNamedClass(http://data.nasa.gov/qudt/owl/qudt#NotUsedWithSIUnit 
> )])
> -- AbstractRedirectingDispatch.getDirectOwnSlotValues()
>
> Exception in thread "main" java.lang.IllegalArgumentException: null  
> slot
>
> I think the problem is with the...RDFProperty
> pr=owlModel.getRDFProperty("rdf:symbol");
>
> What would be the correct parameter that should be given insted of
> rdf:symbol
> In protege it is indicated as symbol "Pm" under data property  
> assertions.
>
> -- 
> View this message in context: http://protege-ontology-editor-knowledge-acquisition-system.136.n4.nabble.com/How-to-get-property-assertions-tp2401364p2401931.html
> Sent from the Protege OWL mailing list archive at Nabble.com.
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03




More information about the protege-owl mailing list