Individuals vanish from the IndividualsByClass List after editing them - protege

I have a class Person and want to create an individual for that class as an instance of that class. Adding that individual by giving the name PeterStrotmann for it is working fine and the individual is visible in the instances list.
Then I want to give it some attributes by editing it. After doing so with e.g. Person and (has exactly 1 Geschlecht), PeterStrotmann is deleted from the instances list and not accessible anymore. On the other side, trying to create a new individual PeterStrotmann ends up in the error message 'Entity already exists'.

Forget that silly question. What I did was editing the Person class while trying to edit the individual. After editing the Person class it wasn't the same anymore thus not finding the individual under the instances list of Person.

Related

fields disappear in sharepoint list

This is an online 365 SharePoint client. On several of our sites there are Lists which have had fields disappear. On the lists view, the column is still there, but the item is gone from the new-item and edit forms. One of the disappearing fields was "Title". It was a required field so I'm surprised the form could be submitted, but it was. An ID# populates that field on the view for record created with the field missing.
Going to List Settings and opening and saving the field re-activates it on the forms. It is unknown how long the fix lasts.
(next day)The fix is still holding. But now I see that in the content type (Item) the Title field is set to "Hidden". I wonder how that happened? Two weeks ago I created a custom content type used at a different site, which inherits "Title" from the Item content type. I was pretty careful not to mess with any existing content types, but I wonder if that event caused my problem somehow.
Any idea what might be causing it?
This is a Content Type problem. CT's inherit qualities from master (Site Setting) CTs. If the master CT has a field set to hidden CTs the inherit from it will also get the field set to hidden - although not necessarily always. It is possible to set the local CT different. Not sure how long it will stay different.

How to force creation of new ContentPartRecords for existing content items?

I have created a new ContentPart with a ContentPartRecord in a custom module and attached it to an existing content type on my website that already has hundreds of content items.
Now when I perform queries of the format contentManager.Query<MyPart, MyPartRecord>().List() I don't get any results since no MyPartRecords actually exist in the database yet.
Is there a way to make sure this happens for all content as soon as my part gets attached to a content type, or will I have to manually interact with all of the items before they become queryable?
This query is asking for all content items that have that part, which is not the case of items created before you added the part to the type definition. See the type definition as a blueprint more than a schema. Depending on what exactly you're trying to do, you may want to try to query by content type instead.
The part will get attached next time the item gets updated, pretty much. You could build something that scripts the operation on existing items, but nothing out of the box will do that.

How to refer same DataTable across different features in cucumber-jvm?

In one of step definitions I have created a function say “someFunction” that takes a DataTable, which has been defined in my feature file Feature1.
Feature1.feature
Given: User enters the following data
Varibale1|Variable2|Variable3
Value1|Value2|Value3
StpeDef.java
#Given(“^User enters the following data$”)
public void someFunction(DataTable input){
}
Now in another feature file “Feature2.feature”, one of my scenario needs to use same step i.e. call someFunction. I know I can use the same step definition but does that mean that I would have to redefine same DataTable input in Feature2 file.
If not, how would I do it?
Please note that I understand the Backgound keyword and its use, but if I say I need to keep these scenarios in different feature files, how should this be done?
You'll have to duplicate the common background. Since duplication is unwanted, you should consider giving a name/title to the resulting state that is represented by that common background and create a single given step that can be re-used. Something like "Given: the user has entered valid contact data" or "Given: the shopping cart has 3 items" (where any 3 will do).

Controlling an NSArrayController and Core data relations

I am new to stackoverflow because I almost never ask questions in forums as there are plenty of questions out there already answered. However my head is about to explode from trying to figure out how to do this app.
First I do this using XCode 4.5.2 for OSX 10.8 deployment of a personal (that is for my use only) double entry accounting software.
Each accounting entry consists of a header of various text fields such as the entry date, a serial number, etc. which I created an Entity called "Entry". Also each such entry has multiple lines such as the various accounts related to that entry, amounts, etc. called an Entity "EntryLine" linked in the model nice and easy.
The thing is that I intended to use text field for the basic header info and below it a linked Table View for each of the line. Being an accounting software there are several checks (validations) that I need to make and I need full control of what is going on. Already tried binding two array controllers, one for each entity and linking the two and saving them to the sqlite file but to no avail!
Now I have an app with just the header up and running by manually getting and setting the info in the top text fields as I please and saving them to the file. But I have no idea how to do the part with the Entry Lines in the Table view. Can I do that manually too or is it better to do bindings through an array controller?
Also tried already with array controller but I get "Table View Cell" when I add a new line in the table. Any ideas on that?
In the Table View there is also an "Account Name" part that is NOT part of the EntryLine entity but my intention is to obtain this information from another entity called "Account" that stores the Account Number and Account Name. On input of the account number that is, the app would skip the name field and move to particulars for input but also bring up the name of the account already inputted. Is this even possible?
Sorry for being a bit vague in my questions but I come from routine program oriented languages and not object oriented one, though I have some Java experience. Any help would be appreciated. No screenshot sorry as I am not yet allowed:(

Approach For Syncing One SharePoint List With One or More SharePoint Lists

What would be the best approach or strategy for configuring, customizing or developing in SharePoint a solution that allows me to keep one or more SharePoint lists in sync with a SharePoint list I have designated as a master or parent list.
I would like to be able to create a master/parent list of some information that can be extended or used by different parts of the organization without them being able to CRUD any items on the actual columns of the master list. (I have seen some commercial web parts that offer column security on SharePoint lists and although that’s one way of potentially meeting my needs I would like to explore other options.)
Scenario:
I have a list called FOO:
FOO
Title
Description
I would like to create a new list BAR based off of FOO (BAR is managed by sub-organization that doesn't have access to FOO List):
BAR
FOO.Title (Read-Only)
FOO.Description (Read-Only)
NewColumn1
NewColumn2
Actions:
Create- If a new item is entered in FOO I would like the new item added to BAR.
Read - N/A
Update - If the title or description is changed in FOO I would like it changed in BAR.
Delete- No Deletes in the scenario. (Deletes are handled by the business with status column.)
Templates with content extraction offer me this but it’s a one time shot at list creation.
Just not sure what the best approach or strategy would be for this in MOSS 2007.
Thanks!
Have you considered just creating a view from the existing foo list? And assigning permissions accordingly?
Well, looks like you will need a column that references to items to be synchronised.
You could make a structure with ListID's and ItemID's and ToString() function that parses it to text (,) and a class that has an array of these objects and toString function that would make it something like that: (;,...). And then a constructor that can construct back object from this string. You would then store this string in somekind of text column.
In this case, you can refer not only to 1 other item but many others.
Now, on itemadded, updated, deleted events you just do what you have to - retrieve list/array of these objects, refer to them and do what you have to.

Resources