Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pebran

Pages: [1]
1
General Board / Re: How to: OR constraints on associations
« on: July 08, 2005, 03:42:49 am »
Hi Bill

It’s easy enough but you have to do it at the time you create the constraint for the first association. That is when you get the dialog ‘Link Relations’ (where you choose the ‘Link Type’) you must check the box at the other association(s) too.

So if you chose the HighSchoolStudent---Academic association as your start you would now have to find the HighSchoolStudent---Commercial association on the list and check that one too.

Be aware that there apparently is no way to add an association at a later time. You have to do this all in one step. Took me some time to figure out

Is this what you meant to do?

Regards,
Peter

2
General Board / Use of regular expressions
« on: December 12, 2004, 05:49:34 am »
From time to time I have the need to make an attribute conform to a specific pattern, i.e. a mail address or a phone number.
I’ve been looking for a way to do this using OCL in a regular expression like way but that doesn’t seem feasible. Is there any canon way to do this?

Regards,
Pebran

3
Bugs and Issues / Re: Problem with DTD
« on: November 26, 2009, 11:25:14 pm »
And let me add to the above:
Is it the use of DTD in the schema that is done wrongly - though it is validated OK in XML Spy - or is it EA that is in error?

It would be nice if someone from Sparx could comment on this.

/Peter

4
Bugs and Issues / Problem with DTD
« on: November 25, 2009, 09:20:39 pm »
Trying to import a valid xsd that contains a DOCTYPE gives me this error message:
“The element ‘xsd:schema’ is used but not declared in the DTD/Schema.”
The xsd starts with :

<?xml version="1.0"?>
<!DOCTYPE xsd:schema [ ... declarations in here ...]

and the root element is defined as:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

The schema validates OK with XML Spy so why cant I import this to EA?

Thanks,
Peter

5
Uml Process / Re: Super and subclasses - and associations
« on: January 24, 2005, 01:36:05 pm »
Yes and no. Person, Group, Organization and OrganizationUnit does of course all have Contact as a generalization. But there is more to it.
May if you think of this as having Role as the center piece. Role has TWO associations to Contact. That implies that Role has two associations to any of Contact’s subclasses. But does it also imply that each association could be with different subclasses of Contact. As an example:
Role has one association to Person and one association to Organization.
And similar examples could be made with the other subclasses.
THAT is what I want to achieve. Any way to do that apart from doing it specifically for each combination of subclasses?

Regards,
Peter Bruhn Andersen

6
Uml Process / Re: Super and subclasses - and associations
« on: January 24, 2005, 11:44:33 am »
I’ll try to explain.
I have a class ‘Contact’ with subclasses ‘Person’, Group’ ‘Organization’ and ‘OrganizationUnit’.
Between each pair of subclasses, ie. Group—Organization , there exists an association class ‘Role’.
These associations /association classes could of course be model individually but I need to model this in a way that ensures that I can add new subclasses to ‘Contact’ and at the same time get all the associations between the new class and the existing ones.
As I understand it a reflexive association (with or without attached class) on Contact will be inherited as just that – as a reflexive association on Person, a reflexive association on Group, etc. In other words it won’t get me the associations I need between the subclasses.
That is why I now need to know if I can create two associations between Contact and Role and thereby create associations between each subclass.
Hope that made it clearer

Regards,
Peter Bruhn Andersen

7
Uml Process / Super and subclasses - and associations
« on: January 23, 2005, 03:53:29 am »
My scenario is like this:
I have a class ’Super’ that has subclasses ‘SubA’, ‘SubB’, ‘SubC’, etc.
If I let Super have two associations to a class ‘Relation’ does this inherit to the subclasses in a way that makes it possible to describe that each subclass is interconnected through ‘Relation’?

In other words, will it give me this desciption:
  SubA ---- Relation ---- SubB
  SubA ---- Relation ---- SubC
  SubB ---- Relation ---- SubC

Thanks,
Peter

8
Uml Process / Re: Associations inherited from superclass?
« on: July 21, 2004, 12:51:07 pm »
Hi Andreas

Well, I did knew that a subclass inherits the properties of the superclass. Just didn't knew that associations should be seen as properties.

Thanks,
Peter

9
Uml Process / Associations inherited from superclass?
« on: July 21, 2004, 04:17:04 am »
Do subclasses inherit associations made to the superclass? Does it make a difference whether or not the superclass is abstract? ???

An example:
‘Fruit’ is an abstract class.
The class ‘Fruit’ has two subclasses ‘Banana’ and ‘Strawberry’
The class ‘FruitBowl’ has association ‘contains’ to the class ‘Fruit’

Does this mean that ‘FruitBowl’ contains ‘Banana’ and ‘Strawberry’?
Or do I have to make separate associations to each of Fruits subclasses

10
Automation Interface, Add-Ins and Tools / Re: OWL, VOM and UML Profile
« on: January 16, 2010, 12:06:56 am »
Quote
(1) select a common name for that feature - proposed name: OMD-profile

If you meant  'ODM-profile' then yes this could be ONE of the profiles we would need. But since this is a metamodel intended to provide a common foundation for ontology modeling and mapping between modeltools we will need to be more specific. The ODM specification includes models for use of RDF, RDFS, OWL, Topic Maps and Common Logic.
On the top of my wish list are models using OWL 2.  I would therefor propose that Sparx develop (in that order) :
  • UML-profile for OWL 2
  • UML-profile for ODM
As I wrote previously I would even be happy to see the subset of OWL 2, specificly the OWL QL profile - if that would speed up the process.

Feel free to add to the list  :)

/Peter


11
Automation Interface, Add-Ins and Tools / Re: OWL, VOM and UML Profile
« on: January 15, 2010, 09:41:22 pm »
Haven't this tread been placed in the wrong forum? Wouldn't we have a better chance of getting the attention of Sparx if this tread was placed in "Suggestions and requests"?

/Peter

12
Automation Interface, Add-Ins and Tools / Re: OWL, VOM and UML Profile
« on: January 15, 2010, 09:36:54 pm »
Quote
@peter: can you send me the profile ?

If I manage to create something worth looking at/working with before Sparx delivers a solution; sure, I can give you a copy. But it may take a while. I have to finish another project first.


/Peter

13
Automation Interface, Add-Ins and Tools / Re: OWL, VOM and UML Profile
« on: January 15, 2010, 03:19:37 am »
Quote
I tried to import the OMG profiles - http://www.omg.org/spec/ODM/1.0/ .

This did not work without modifications.

What were the modifications you made? I have never been able to import the xmi (neither of the two available). Instead I have startet developing my own OWL 2 profile plus transformation to OWL/XML. Quite a lot of work so it certainly would be nice if Sparx would help out here.

/Peter

14
Automation Interface, Add-Ins and Tools / Re: OWL, VOM and UML Profile
« on: January 13, 2010, 09:54:36 pm »
I certainly would appreciate an OMG OWL profile soon.
 
And please remember to make the profile OWL 2 compatible.  It would even be acceptable to restrict the implementation to the OWL 2 QL profile if this speeds up the process.

/Peter

Pages: [1]