Re: [Arches] Nested resource models

2018-04-19 Thread Adam Cox
Hi Anjo,

You definitely have the right idea. Have you explored using the
resource-instance datatype? You should able to, for example, add a node to
the Archaeological Site resource model graph called something like
"Associated Monument" which has a "resource-instance" datatype. Then you
can select Monument for the resource model that the new node uses.

In this way you will be able to "embed" one resource into another.

Of course, another way you can connect these resources is to use Resource
to Resource Relationships. However, these would have to be created
manually, after the addition of a new Monument, so I would recommend the
resource-instance datatype.

Interested to hear how things go!
Adam

On Thu, Apr 19, 2018 at 3:31 PM, Anjo Weichbrodt 
wrote:

> Hi,
>
> I am unsuccessfully playing with the resource models to accomplish the
> following:
> I would like to model an archaeological site containing monuments and
> monuments containing sectors and sectors containing walls.
> To my limited understanding of arches this would be accomplished by
> creating resource models for: sites, monuments, sectors and walls. I would
> then connect them between each other in the graph designer, but this is not
> possible. I am sure there must be a really simple solution.
>
> Thanks for your help,
> Anjo
>
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to archesproject+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] Nested resource models

2018-04-19 Thread Anjo Weichbrodt
Hi,

I am unsuccessfully playing with the resource models to accomplish the 
following:
I would like to model an archaeological site containing monuments and 
monuments containing sectors and sectors containing walls.
To my limited understanding of arches this would be accomplished by 
creating resource models for: sites, monuments, sectors and walls. I would 
then connect them between each other in the graph designer, but this is not 
possible. I am sure there must be a really simple solution.

Thanks for your help,
Anjo


-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Issues uploading packages to Arches

2018-04-19 Thread Cyrus Hiatt
Hi Chantelle -

Great that you are got things installed and are ready to load a package.
Just a couple of questions to help narrow down your issue:

Which version of arches are you running?
What is the repository url you used to get your package?

Also, you may want to add the `-db true` argument in order to rebuild your
database when you load the package, like so:

python manage.py packages -o load_package -s [zip file path] -db true

Thanks,

Cyrus



On Thu, Apr 19, 2018 at 9:16 AM, Chantelle Smith <
chantelle.sm...@historicengland.org.uk> wrote:

> Good afternoon everyone,
>
> I'm just getting to grip with Arches and I'm trying to upload a package to
> my local installation so I can see what the application looks like with
> stuff in it.
>
> I'm using the following command line command to try to load packages
> downloaded as zip files:
>
> python manage.py packages -o load_package -s [zip file path]
>
>
> When I do so the following runtime error occurs:
>
>
> 
>
> I am running ElasticSearch while doing the upload (just in case it has any 
> effect).  I've tried to upload zip files from two separate repositories with 
> the same result.
>
> Am I missing something obvious here that I haven't done?
>
> Many thanks,
>
> Chantelle
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to archesproject+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Resource Model, already has instances saved.

2018-04-19 Thread Adam Lodge
Hi Anjo,

I would use one of two approaches:

1> Make a clone of the resource model that you want to edit.  This will create 
a new resource model (minus the resources themselves) within your arches 
instance.  You can then edit that.



2> There is a command line utility to remove all resources in your arches 
instance documented here: 
http://arches.readthedocs.io/en/latest/command-line-reference/ 

python manage.py packages -o remove_resources [-y]
The downside of the command line tool is that it wipes out all resources in 
Arches.  There is currently no way to specify a specific resource model that 
you want to clean out.

Best,
Adam



> On Apr 18, 2018, at 3:00 PM, Anjo Weichbrodt  
> wrote:
> 
> Hi,
> 
> I would like to experiment with the resource models and modify them.
> But because I created resources I get following Error message : "Your 
> resource model: Heritage Resource Model, already has instances saved."
> How can I elegantly delete the instances.
> 
> Thanks for your help,
> Anjo
> 
> 
> -- 
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe, 
> send email to archesproject+unsubscr...@googlegroups.com. For more 
> information, visit https://groups.google.com/d/forum/archesproject?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to archesproject+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] Issues uploading packages to Arches

2018-04-19 Thread Chantelle Smith
Good afternoon everyone,

I'm just getting to grip with Arches and I'm trying to upload a package to 
my local installation so I can see what the application looks like with 
stuff in it.

I'm using the following command line command to try to load packages 
downloaded as zip files:

python manage.py packages -o load_package -s [zip file path]


When I do so the following runtime error occurs:



I am running ElasticSearch while doing the upload (just in case it has any 
effect).  I've tried to upload zip files from two separate repositories with 
the same result.

Am I missing something obvious here that I haven't done?

Many thanks,

Chantelle

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.