[protege-owl] setPropertyValue and Namespace Bug?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[protege-owl] setPropertyValue and Namespace Bug?

ulrich thye
Hy,


with a litle simplification I have 3 OWL-Files:

Ont1: ns1:Class1
-----------------

Ont2: ns2, import Ont1,

      ns1:Class1  <has_annotation__Property> ns2:Data1=0.0

----------------------
Ont3: ns3, import Ont2
----------------------


Protege 342

(OWLModel) owlModel = load("Ont3");

ns1 has Prefix j.0
ns2 has Prefix j.1

...
...
RDFResource res = ns1:Class1;

datatype_prop = (OWLDatatypeProperty) res.getPropertyValue("ns2:Data1");
...

newvalue = 2.0;
...
res.setPropertyValue(datatype_prop, newvalue);

.....
.....

the result is:

Ont3: ns1:Class1  <has_annotation_Property> ns2:Data1=0.0
                  <has_annotation_Property> ns2:Data1=2.0

with two annotation Property ns2:Data1 and different values.

Is it OK in the OWL-Syntax, that a Class has two Propertys
of the same name?

why is the first value not overload by protege ?

Any Hints ?


Ulrich Thye




         

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Reply | Threaded
Open this post in threaded view
|

Re: [protege-owl] setPropertyValue and Namespace Bug?

Thomas Russ
>
> Is it OK in the OWL-Syntax, that a Class has two Propertys
> of the same name?

Sure.  Only Functional Properties are restricted to having
only a a single value.  Other properties can have as many
values as you care to assert.

>
> why is the first value not overload by protege ?

Because you can have more than one value.

You would need to remove the asserted value from
the other ontology to get it to go away.



_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Reply | Threaded
Open this post in threaded view
|

[protege-owl] Ontology for Automotive Communications & Media Relationships

Nitin Uchil-2
In reply to this post by ulrich thye
I am new to the entire Semantic Web/Ontology but have
been following your group for quite some time and here
is my question:

I am in the process of creating a Content Management
System for the Automotive Industry that deals with the
Communications with Media/Press. The needs of this CMS
to represent content:

1 by Brand/Make (Ford, Jaguar, Mercury, Lincoln, etc)
then year & model
2 by Region then Country then Language (multi-language
for countries like Canada)
3 by News artifact (Financials, Breaking News, Vehicle
Specifications, Facility Metrics, Photo, Video etc.)
4 by People (Content Creators, Site Managers,
Publishers, Journalists , Archiver ...)
5. by Theme (Corporate, Vehicle, Show, Event, etc.)

The idea of the site is to make it easy for the
content providers to upload content be it on a Country
Centric or Brand Centric basis, and for journalists to
have a good end-user experience.

Can anyone help me formalize the project in Protege.

Best Regards.

Nitin Uchil


 
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03