[Arches] Graph view replacement

2021-03-22 Thread Mahmoud Abdelrazek
Hi all, 

I am looking for a tool to visualise the resource models ( and maybe 
thesauri and collections too). I understand that the graph view in the 
resource designer is not available in v5.1. I wonder if anyone can 
recommend a tool that produces a similar impact.

In the HIP package, there was a few gephi files that can produce graph 
visualisations too. Is there a system to export the resource models in 
gephi format? 

All best,
Mahmoud 

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/61669e05-217a-43e5-834b-52607ffad96en%40googlegroups.com.


[Arches] Re: How to translate Arches' Ontology?

2021-03-08 Thread Mahmoud Abdelrazek
Hi Angel, 

Welcome to Arches community. 
If I understand your question correctly, then you are looking for a 
translation for the cidoc-crm which is supported by Arches. If that is the 
case then official translations are listed 
here http://www.cidoc-crm.org/translations. Unfortunately, they do not 
include Spanish. If you managed to translate the ontology and want to load 
it to Arches, please 
check 
https://arches.readthedocs.io/en/latest/ontologies-in-arches/#loading-an-ontology
 
Please do elaborate further if I missed the point of your question.

Best wishes, 
Mahmoud 
On Monday, March 8, 2021 at 1:34:10 AM UTC Angel Collado wrote:

> Hello everyone. I am new to Arches and I don't know how to translate the 
> complete Arches ontology, if possible, into another language, in my case 
> into Spanish. I have version 5.1.0 installed and I have been able to 
> translate some things related to the settings file to the language and .po 
> files. But I have not been able to find how to translate the ontology in an 
> automatic way, as I know that it can be done manually for the name of each 
> of the attributes/nodes/concepts. 
>
> Thanks for your help. 
>
> Regards. 
>
> Angel. 
>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/098836f9-81e0-4db0-afcb-68d77bfe5bd6n%40googlegroups.com.


[Arches] Re: Error in editing the system settings

2020-12-09 Thread Mahmoud Abdelrazek
Hi Lindsey, 

Thank you for your comment.  
I have not been able to solve this issue yet. I believe it has something to 
do with the dependencies of arches. I am not quite sure which one is 
causing it to break. My guess is the shift from python 3.6 to 3.7 might 
have something to do with it. 

Best,
Mahmoud 

On Tuesday, December 8, 2020 at 10:06:40 PM UTC Lindsey Gant wrote:

> Hi Mahmoud,
>
> Thank you for your message. Were you able to find a solution to this error 
> in your system settings? If not, let me see if someone in the group can 
> follow up.
>
> Best,
>
> Lindsey
> Getty Conservation Institute, Arches
>
> On Thursday, November 26, 2020 at 1:41:52 PM UTC-8 raz...@gmail.com wrote:
>
>> Hi All, 
>>
>> I am having trouble editing the system settings in Arches interface.  I 
>> get an error with the following message
>> "*Unable to save. Please verify your input is valid*
>>
>> *TileCardinalityError: Trying to save a tile to a card with cardinality 1 
>> where a tile has previously been saved*."
>>
>> [image: TileCardinalityError_error.png]
>>
>>
>> I am using version 5.1 installed from GitHub on an ubuntu 18.4 server and 
>> serving using apache. My initial thought was that I must have misconfigured 
>> the permissions but then I tried removing the setting "record" and then 
>> adding a new record with the setting I require and the system accepted it. 
>> It still prevented me from editing the new record system I added.
>>
>> [image: TileCardinalityError_delete.png]
>>
>> [image: TileCardinalityError_new.png]
>>
>> Thank you for your help, 
>>
>> I am not sure if the settings file or any list of permissions would be 
>> relevant here. I am happy to share them if you think they might. 
>>
>>
>> Best,
>>
>> Mahmoud 
>>
>>
>>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/82873fd0-c5fa-4b90-8420-3db9a7794132n%40googlegroups.com.


[Arches] Re: Problem with translation files

2020-08-13 Thread Mahmoud Abdelrazek
Hi All, 

Thank you Adam for your help. I tried specifying the extension to "htm" and 
it did work in collecting the text in the homepage (*index.htm*). To 
collect the rest of the text I had to copy the templates from inside arches 
library to the project and then run makemessages again. I will try to test 
the process a few times and then draft a guide for it for the 
documentation. 

Thank you again, 
Best, 
Mahmoud 
On Sunday, August 9, 2020 at 6:13:06 PM UTC+2 Mahmoud Abdelrazek wrote:

> Hi All, 
>
> I am trying to enable a language switcher for an arches implementation. I 
> think similar to here 
> <https://groups.google.com/g/archesproject/c/YTopbQdPDQg/m/LuK32MzvBwAJ> but 
> for version 5. 
>
> The process is I understand it is as follows: 
>
>1. Include localization tags in the HTML files and surround the text 
>with "trans" tags. #already done by arches
>2. Include the "locale" location in the settings 
>3. Produce the localization files ' .po and .mo ' using "makemessages" 
>command
>4. Include the translation in the localization ' .po ' and then 
>compile it using "compilemessages" command 
>5. Include a language switcher in the page's template similar to the 
>example here 
>
> <https://docs.djangoproject.com/en/dev/topics/i18n/translation/#the-set-language-redirect-view>
>. 
>6. Set the list of the available languages in the settings file 
>
> I could not produce the localization files. I have tried adding folders to 
> the locale list and tried resiting it to only one directory and then 
> running makemessages but it didn't create any files. I only got back 
> processing 
> locale ru when I tried the Russian language. I have tried both manage.py 
> and django-admin and got the same results. I tried all languages and also 
> nothing was created. 
>
> I feel like there might be something obvious I am missing here. Did anyone 
> come across this issue before? or tried and managed and translated v5 
> successfully? 
>
>
> I have added the switcher to the HTML template and added a list of 
> controlled languages in the settings file. The switcher shows in all the 
> windows and accepts changes (post request is sent successfully)  
>
> However, only the word "search" is translated. I am not sure if this is 
> the expected behaviour or not? How much of Arches is available in other 
> languages by default? Is there a list of supported languages available 
> somewhere?
>
> Thank you all very much for your help. 
> Best, 
> Mahmoud 
>
>
>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/805b1bcd-632b-48d4-9fb3-6e2a0709c216n%40googlegroups.com.


Re: [Arches] Re: elasticsearch max buckets error

2020-06-26 Thread Mahmoud Abdelrazek
Hi Adam & Alina,

Thank you for your response. I have not been able to test the system before 
and after the change using the same amount of data. However, the search 
page seems to take considerably more time to load, even more time for the 
map to display all the points properly. I think this has more to do with 
the count of data points than with the limit changed. 

I couldn't find the TIMEWHEEL_DATE_TIERS in our settings file, but I think 
I will try to look more deeply into this as we are expecting more data to 
come in. It is my understanding - so far - that the map is reading out of 
Postgresql and the sidebar (especially in search) is reading of 
elasticsearch. I have noticed that the map still loads in normally with 
even when the error shows up. 

I will try to look more into this. I think it is worth mentioning it in the 
docs too. I will make a not of this. 

Thank you very much for your help,
Mahmoud  


On Friday, June 19, 2020 at 7:42:48 PM UTC+2, Adam Cox wrote:
>
> Hi Mahmoud, I apologize for the late response here, but I also encountered 
> this same error a while ago when upgrading an arches database to Arches 5. 
> I was also concerned about just changing the maximum number of buckets, but 
> did do it just as you have and everything has run fine since then, though 
> frankly I couldn't know if performance is affected because it never worked 
> before the change...
>
> I've had a look back at the original error messages I encountered, and 
> it's interesting that I had the same amount of buckets as you, 15,011. One 
> thing that Rob suggested to me was looking at the "Search Results Grid" in 
> System Settings UI or at the TIMEWHEEL_DATE_TIERS in settings.py, or 
> perhaps the "Hexagon Grid Precision". So, some of those settings may reduce 
> the number of buckets, but I don't think I looked very deeply into them.
>
> As these are aggregation buckets of some kind, I would guess that the 
> number of resources doesn't really have anything to do with it, per se.
>
> Interested to know if you have found anything new related to this issue. 
> We should probably put a note in it ES installation docs.
>
> Adam
>
> On Fri, Jun 19, 2020 at 11:59 AM Alina Myklebust  > wrote:
>
>> Hi Mahmoud,
>>
>> Have you noticed a negative impact on performance since you edited the 
>> configuration file?  Let us know how that's working for you.  Thanks!
>>
>> Best,
>>
>> Alina
>>
>>
>> On Monday, June 15, 2020 at 4:12:45 AM UTC-7, Mahmoud Abdelrazek wrote:
>>>
>>> Hi everyone, 
>>>
>>> I have had an issue with an elasticsearch error when loading the main 
>>> search page. The error is as follows:
>>>
>>> TransportError at /search/resources TransportError(503, 
>>> 'search_phase_execution_exception', 'Trying to create too many buckets. 
>>> Must be less than or equal to: [1] but was [15011]. This limit can be 
>>> set by changing the [search.max_buckets] cluster level setting.') 
>>>
>>> We have uploaded more than 10k entries to one of the resource models 
>>> which seems to be the reason for this error. I did a quick search and found 
>>> that the following command would raise the max buckets limit to 20k which 
>>> solved the problem. 
>>>
>>> curl -XPUT 127.0.0.1:9200/_cluster/settings -H 'Content-Type: 
>>> application/json' -d '{
>>> "transient" : {
>>> "search.max_buckets": 2
>>> }
>>> }'
>>>
>>> However, when the server restarted, elasticsearch ran into the same 
>>> error again. This time I edited the configuration file by adding the 
>>> following line 
>>>
>>> search.max_buckets: 2
>>>
>>> It seems to work fine for now but I am concerned that raising this limit 
>>> might have a negative impact on the performance. Arches handles the 
>>> requests to elasticsearch automatically, so I am not sure how much is this 
>>> relevant. 
>>>
>>> Did anyone run into the same issue? Any better solutions? and do you 
>>> think this will have an impact on the performance? 
>>>
>>> Thank you, 
>>> Mahmoud 
>>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@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

[Arches] elasticsearch max buckets error

2020-06-15 Thread Mahmoud Abdelrazek
Hi everyone, 

I have had an issue with an elasticsearch error when loading the main 
search page. The error is as follows:

TransportError at /search/resources TransportError(503, 
'search_phase_execution_exception', 'Trying to create too many buckets. 
Must be less than or equal to: [1] but was [15011]. This limit can be 
set by changing the [search.max_buckets] cluster level setting.') 

We have uploaded more than 10k entries to one of the resource models which 
seems to be the reason for this error. I did a quick search and found that 
the following command would raise the max buckets limit to 20k which solved 
the problem. 

curl -XPUT 127.0.0.1:9200/_cluster/settings -H 'Content-Type: 
application/json' -d '{
"transient" : {
"search.max_buckets": 2
}
}'

However, when the server restarted, elasticsearch ran into the same error 
again. This time I edited the configuration file by adding the following 
line 

search.max_buckets: 2

It seems to work fine for now but I am concerned that raising this limit 
might have a negative impact on the performance. Arches handles the 
requests to elasticsearch automatically, so I am not sure how much is this 
relevant. 

Did anyone run into the same issue? Any better solutions? and do you think 
this will have an impact on the performance? 

Thank you, 
Mahmoud 

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/710c9ba3-4697-48e5-b0d0-d68022869b9co%40googlegroups.com.


[Arches] Re: Arches 5 Documentation Sprint: Call for Suggestions and Feedback

2020-06-04 Thread Mahmoud Abdelrazek
Hi Adam, 

Thank you so much for stating this. I would like to participate in this 
great effort. 
One page of documentation which I would like to start working on is *an 
update to arches installation on ubuntu server*. I have seen similar pages 
in previous versions of arches like this 
 
but 
I believe that a similar one for version 5 doesn't exist yet. I would like 
to try to make this installation process as approachable as possible. The 
aim is to enable the user to install arches on a ubuntu server virtual 
machine which replicates what I assume most of the active implementations 
of arches currently online. I am sure that this will require me to ask many 
questions and learn new concepts, and I would rely on the knowledge and 
generosity of our community to guide my steps. I hope this will be a useful 
addition to the documentation. 

Best, 
Mahmoud 
On Thursday, June 4, 2020 at 6:45:59 PM UTC+2, Adam Cox wrote:
>
> Hello everyone,
>
> Angela Labrador and I are planning to coordinate a community-oriented 
> documentation writing sprint to bring the current Arches documentation 
> up-to-date with the most recent release, v5.0 as best as we can. Hopefully 
> we can also address some aspects of the documentation that needed attention 
> prior to the update.
>
> We'd like to begin by soliciting feedback from all forum members on the 
> following:
>
>- Which aspects of the documentation have you found confusing or 
>misleading?
>- Are there topics that you would like to see added to the official 
>documentation?
>
> Please respond with your thoughts in this thread or email us directly. 
> Feel free to second other people's posts if someone has already mentioned 
> the same thing you were thinking--more input is better than less at this 
> stage.
>
> We'll begin comparing your ideas with known documentation "to-dos" as 
> recorded in the arches-docs issue tracking. 
> Then we can put out 
> a call for help, especially to those most knowledgeable in these specific 
> topics, and start organizing a "sprint" of a few days where we can make 
> some real progress on the content itself.
>
> We won't get everything perfect, but hopefully a concerted and coordinated 
> effort can make some big improvements.
>
> Adam
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/8bd222b1-c2ba-4126-9589-cf659f53e536o%40googlegroups.com.


[Arches] Re: Adding features to mapbox (scale bar)

2020-05-22 Thread Mahmoud Abdelrazek
Hi, 

I have tried editing the js file in the static directory directly, cleared 
the cache and the scale bar showed up. 

Thank you so much for help. 
Mahmoud 

On Wednesday, April 29, 2020 at 9:47:32 AM UTC+2, Mahmoud Abdelrazek wrote:
>
> Hi, 
>
> I am trying to add a scale bar to the main map in the search window. I 
> think the map is generated from the file *mapbox-gl.js *in the following 
> directory *Lib\site-packages\arches\app\media\js\bindings\mapbox-gl.js 
> *inside 
> the environment. To add a scale bar I added the following line after the 
> map variable is created 
>
> map.addControl(new mapboxgl.ScaleControl(), 'bottom-right');
>
> I tested the code on a local implementation on my computer and it did work 
> fine. I could see the scale bar on the map as ib the included screenshot. 
> However, when applying the same code to an online live server, the map 
> didn't update to include the scale bar. I am not sure why is happening. Am 
> I missing something? 
>
> [image: scale_bar_arches.jpg]
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thank you for your help.
> Mahmoud 
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/a8cfc565-cc8c-4f65-9a2c-4da91e4df55e%40googlegroups.com.


[Arches] Re: v5 documentation

2020-05-12 Thread Mahmoud Abdelrazek
Hi Lily, 

I am not sure if this is what you are looking for, but here is a link to v5 
documentation https://arches.readthedocs.io/en/5.0.0/

Best regards,
Mahmoud 

On Tuesday, May 12, 2020 at 8:55:21 PM UTC+2, Lily Pregill wrote:
>
> Hello,
>
> Does anyone know if the current documentation has been updated for v5? The 
> version history does not reflect v5:
>
> v4.4 February, 2019: Release of Arches Collector 
>  mobile 
> data collection app
>
> v4.0 July, 2017: Significant site redesign, addition of graph creation UI, 
> system settings UI, internal tileserver (TileStache), updated dependencies 
> (MapBox GL, ElasticSearch 5.2, Yarn)
>
> v3.0 April, 2015: Updated architecture, inclusion of the Reference Data 
> Manager, updated dependencies (ElasticSearch, OpenLayers, Knockout)
>
> v2.0 March, 2014: Improved upload of digital files, assorted bug fixes
>
> v1.0 October, 2013: Initial Release
>
>
> Thanks,
>
> Lily
>
>
> *Lily Pregill*, Systems Architect | The J. Paul Getty Trust | (310) 440 
> 6394  |  getty.edu 
>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/6749807d-07b4-43e4-b5ca-f76dc059d0c8%40googlegroups.com.


Re: [Arches] Re: Adding features to mapbox (scale bar)

2020-05-04 Thread Mahmoud Abdelrazek
Hi Cyrus,

Thank you so much for your help. I did clear the cache but unfortunately, 
it didn't help. 

The edit is mainly on core arches then carried out to the project through 
*collectstatic 
*command. I did trace it and found the same edit in the project files 
after. 

Thank you again, 
Best regards, 
Mahmoud 

On Sunday, May 3, 2020 at 6:07:30 PM UTC+2, Cyrus Hiatt wrote:
>
> Hi Mahmoud - 
>
> You've probably already tried clearing you browser's cache, but in case 
> you haven't that might be worth trying.
>
> If that doesn't help, I'm curious whether you edited the file in core 
> arches, or if you are overriding the file from within your project?
>
> Kind regards,
>
> - Cyrus
>
>
>
> On Wed, Apr 29, 2020 at 3:30 AM Mahmoud Abdelrazek  > wrote:
>
>> Hi Reuben, 
>>
>> Than you very much for your help. 
>> I performed the static files update and restarted the server. Django 
>> copied the js file to the static directory. I checked the static directory 
>> and confirmed that the js file was replaced. However, the scale bar still 
>> didn't show up on the map.
>> Any thoughts on why that might be? 
>>
>> Thank you again for your help, 
>> Mahmoud 
>>
>> On Wednesday, April 29, 2020 at 11:14:56 AM UTC+2, Mahmoud Abdelrazek 
>> wrote:
>>>
>>> Hi Reuben, 
>>>
>>> Thank you for your help. I have not tried to restart the server nor to 
>>> update the static files. I will try this and report back here. 
>>>
>>> Thank you again,
>>> Mahmoud 
>>>
>>> On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:
>>>>
>>>> Hi Mahmoud,
>>>>
>>>> Have you tried updating the static files on the server? *python 
>>>> manage.py collectstatic* and  then *sudo service apache2 restart *to 
>>>> make sure the changes are being picked up.
>>>>
>>>> Reuben
>>>>
>>>>
>>>> On Wednesday, 29 April 2020 08:47:32 UTC+1, Mahmoud Abdelrazek wrote:
>>>>>
>>>>> Hi, 
>>>>>
>>>>> I am trying to add a scale bar to the main map in the search window. I 
>>>>> think the map is generated from the file *mapbox-gl.js *in the 
>>>>> following directory 
>>>>> *Lib\site-packages\arches\app\media\js\bindings\mapbox-gl.js 
>>>>> *inside the environment. To add a scale bar I added the following 
>>>>> line after the map variable is created 
>>>>>
>>>>> map.addControl(new mapboxgl.ScaleControl(), 'bottom-right');
>>>>>
>>>>> I tested the code on a local implementation on my computer and it did 
>>>>> work fine. I could see the scale bar on the map as ib the included 
>>>>> screenshot. However, when applying the same code to an online live 
>>>>> server, 
>>>>> the map didn't update to include the scale bar. I am not sure why is 
>>>>> happening. Am I missing something? 
>>>>>
>>>>> [image: scale_bar_arches.jpg]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thank you for your help.
>>>>> Mahmoud 
>>>>>
>>>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@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 arches...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/5fb03288-5509-41a3-b572-1293c79d2c9f%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/archesproject/5fb03288-5509-41a3-b572-1293c79d2c9f%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/050ea72f-98f5-45c4-af0a-b8ff4841b45a%40googlegroups.com.


[Arches] Re: Adding features to mapbox (scale bar)

2020-04-29 Thread Mahmoud Abdelrazek
Hi Reuben, 

Than you very much for your help. 
I performed the static files update and restarted the server. Django copied 
the js file to the static directory. I checked the static directory and 
confirmed that the js file was replaced. However, the scale bar still 
didn't show up on the map.
Any thoughts on why that might be? 

Thank you again for your help, 
Mahmoud 

On Wednesday, April 29, 2020 at 11:14:56 AM UTC+2, Mahmoud Abdelrazek wrote:
>
> Hi Reuben, 
>
> Thank you for your help. I have not tried to restart the server nor to 
> update the static files. I will try this and report back here. 
>
> Thank you again,
> Mahmoud 
>
> On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:
>>
>> Hi Mahmoud,
>>
>> Have you tried updating the static files on the server? *python 
>> manage.py collectstatic* and  then *sudo service apache2 restart *to 
>> make sure the changes are being picked up.
>>
>> Reuben
>>
>>
>> On Wednesday, 29 April 2020 08:47:32 UTC+1, Mahmoud Abdelrazek wrote:
>>>
>>> Hi, 
>>>
>>> I am trying to add a scale bar to the main map in the search window. I 
>>> think the map is generated from the file *mapbox-gl.js *in the 
>>> following directory 
>>> *Lib\site-packages\arches\app\media\js\bindings\mapbox-gl.js 
>>> *inside the environment. To add a scale bar I added the following line 
>>> after the map variable is created 
>>>
>>> map.addControl(new mapboxgl.ScaleControl(), 'bottom-right');
>>>
>>> I tested the code on a local implementation on my computer and it did 
>>> work fine. I could see the scale bar on the map as ib the included 
>>> screenshot. However, when applying the same code to an online live server, 
>>> the map didn't update to include the scale bar. I am not sure why is 
>>> happening. Am I missing something? 
>>>
>>> [image: scale_bar_arches.jpg]
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thank you for your help.
>>> Mahmoud 
>>>
>>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/5fb03288-5509-41a3-b572-1293c79d2c9f%40googlegroups.com.


[Arches] Re: Adding features to mapbox (scale bar)

2020-04-29 Thread Mahmoud Abdelrazek
Hi Reuben, 

Thank you for your help. I have not tried to restart the server nor to 
update the static files. I will try this and report back here. 

Thank you again,
Mahmoud 

On Wednesday, April 29, 2020 at 10:00:23 AM UTC+2, Reuben Osborne wrote:
>
> Hi Mahmoud,
>
> Have you tried updating the static files on the server? *python manage.py 
> collectstatic* and  then *sudo service apache2 restart *to make sure the 
> changes are being picked up.
>
> Reuben
>
>
> On Wednesday, 29 April 2020 08:47:32 UTC+1, Mahmoud Abdelrazek wrote:
>>
>> Hi, 
>>
>> I am trying to add a scale bar to the main map in the search window. I 
>> think the map is generated from the file *mapbox-gl.js *in the following 
>> directory *Lib\site-packages\arches\app\media\js\bindings\mapbox-gl.js 
>> *inside 
>> the environment. To add a scale bar I added the following line after the 
>> map variable is created 
>>
>> map.addControl(new mapboxgl.ScaleControl(), 'bottom-right');
>>
>> I tested the code on a local implementation on my computer and it did 
>> work fine. I could see the scale bar on the map as ib the included 
>> screenshot. However, when applying the same code to an online live server, 
>> the map didn't update to include the scale bar. I am not sure why is 
>> happening. Am I missing something? 
>>
>> [image: scale_bar_arches.jpg]
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Thank you for your help.
>> Mahmoud 
>>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/6d9ed98b-4727-40a1-a968-e6a8a2209099%40googlegroups.com.


Re: [Arches] Problems loading HIP package in version 5.0 (Windows 10 installation)

2020-03-25 Thread Mahmoud Abdelrazek
Hi Cyrus, 

Thank you so much for your help. Yes, it did work. I tried on an empty 
project and loaded the models. I have noticed that the project only accepts 
a certain area around Lincoln UK even if I set the project extent to wider 
than this area. Does the package have an impact on the project extent? or 
zoom limitations? 
 
Thank you again, 
Mahmoud 

On Monday, March 23, 2020 at 10:50:11 PM UTC+2, Cyrus Hiatt wrote:
>
> Hi Mahmoud - 
>
> Sorry for the late reply. If you still want to try loading a demo package, 
> try this one: https://github.com/archesproject/arches-example-pkg 
> <https://github.com/archesproject/arches-example-pkg/tree/master/graphs/resource_models>
> . 
>
> So the load command would be: 
>
> python manage.py packages -o load_package -s 
> https://github.com/archesproject/arches-example-pkg/archive/master.zip 
> -db true
>
>
> Bear in mind that if you run that command from your project it will 
> recreate your database, so you'll lose any models that you may have created 
> in the designer.
>
> Hope that helps,
>
> Cyrus 
>
>
> On Thursday, March 12, 2020 at 6:12:41 AM UTC-7, Mahmoud Abdelrazek wrote:
>>
>> Hi Cyrus, 
>>
>> Thank you so much for your help. I am working with Bryan on the same 
>> project and I have a similar installation to his. I have tried removing the 
>> contents of the functions, widgets, and datatypes folders and then loading 
>> the package but I got this database error 
>>
>> DETAIL:  Key (resourceclassfrom)=(99417384-b8fa-11e6-84a5-026d961c88e6) 
>> is not present in table "nodes".
>>
>> similar to Eleni 
>> https://groups.google.com/forum/?utm_medium=email_source=footer#!msg/arches-dev/Ks1vD_lg1Y0/KmLJ8g6XHwAJ
>>
>> I am not sure how to resolve it. It would be great if you could help on 
>> this. 
>>
>> Thank you again,
>> Mahmoud 
>>
>> On Friday, February 28, 2020 at 8:18:17 PM UTC+2, Cyrus Hiatt wrote:
>>>
>>> Hi Bryan - 
>>>
>>> Unfortunately that package has not been updated for v5, but it still may 
>>> work with some small changes. I would download the entire package locally 
>>> from github, unzip it and remove the contents of the functions, widgets, 
>>> and datatypes folders within the extensions directory. Then try to reload 
>>> package with the `-s` option of the load_package command pointed to your 
>>> local version of the package.
>>>
>>> Hope that helps,
>>>
>>> Cyrus
>>>
>>>
>>>  
>>>
>>> On Thu, Feb 27, 2020 at 10:47 AM Bryan Alvey  wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> I've installed version 5.0 on my laptop  (Windows 10).  
>>>>
>>>> Under 'Next Steps', I'm trying to load the HIP package specified in:
>>>>
>>>> python manage.py packages -o load_package -s 
>>>> https://github.com/archesproject/arches4-example-pkg/archive/master.zip 
>>>> -db true
>>>>
>>>>
>>>> I note that in the address argument there is 'arches4-example'  and 
>>>> when I run the command I get:
>>>>
>>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean 
>>>> print("no match for this preflabel:",preflabel)?
>>>>
>>>> - which I am informed may refer to Python 2.7 syntax. 
>>>>
>>>> So I guess what I'm asking is: Am I looking in the right place? Is 
>>>> there a HIP package for version 5?
>>>>
>>>> Can anybody help?
>>>>
>>>> Best wishes,
>>>>
>>>>
>>>>
>>>> Bryan Alvey
>>>>
>>>>
>>>> -- 
>>>> -- To post, send email to arches...@googlegroups.com. To unsubscribe, 
>>>> send email to arches...@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 arches...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/archesproject/f3fa2144-c4a1-4739-bfde-70290433493f%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/archesproject/f3fa2144-c4a1-4739-bfde-70290433493f%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/c06378d1-2940-467c-8942-ace2d05d6a80%40googlegroups.com.


[Arches] Re: Zoom limit per group

2020-03-25 Thread Mahmoud Abdelrazek
Hi Adam, 

Thank you for your help with this. Yes! I have noticed the same thing and I 
am trying to keep it to a minimum. I am not sure if I should try to reduce 
the number of calls the app is making by default. As for now, the code is 
only calling one object to replace the system settings. I have tested the 
code and it doesn't seem to impact the loading time at all. However, I am 
facing a strange issue with the zoom. I think I should post this 
separately. In my installations (I have a few now) the zoom limitations 
imposed by the app itself is not working. I am not sure if this is a 
certain setting that I didn't set correctly or if it is something related 
to the app itself. 

Thank you again, 
Mahmoud 


On Wednesday, March 25, 2020 at 6:01:19 PM UTC+2, Adam Cox wrote:
>
> Hi Mahmoud, recently (since we last spoke) I began experimenting with 
> using a context processor for a permissions-related aspect of my app. I 
> noticed, however, that when loading the map search page, the context 
> processor functions are each called 15 times! This is something to be aware 
> of as you develop--it would be wise to keep those functions very 
> lightweight.
>
> Good luck,
> Adam
>
> On Tuesday, March 24, 2020 at 6:24:10 PM UTC-5, Mahmoud Abdelrazek wrote:
>>
>> Hello Everyone,
>>
>> My name is Mahmoud Abdelrazek. I am from Egypt and I am happy to be 
>> introduced to such an active and helpful community. 
>>
>> I am working on a project to introduce a few custom features to an Arches 
>> implementation. The first of which is imposing zoom in/out limit on each 
>> group of users. 
>>
>> My questions are: Did anyone try this before? Do you have recommendations 
>> on how this might work? 
>>
>> The approach I am working on now is to edit the context processors file 
>> so that it would pass different zoom in/out limits based on the group and 
>> add a group limit model on top of the group model to allow the admin to set 
>> the limits per group. 
>>
>> What do you think of this? 
>>
>> Any advice is appreciated
>>
>>
>> Thank you, 
>> Mahmoud  
>>  
>>
>>
>>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/7638b897-7ce8-45c0-b6a9-eab9ec3f6850%40googlegroups.com.


[Arches] Re: Signing in

2020-03-24 Thread Mahmoud Abdelrazek
Hi Everyone, 

This is Mahmoud Abdelrazek. I am an Egyptian geologist turned data 
scientist. I have some experience with GIS, remote sensing, photogrammetry 
and web development. This is such a great group of people and I am so 
excited to join in. 

My task with arches is to edit a certain implementation to add a few custom 
features which will be also available for the community. I have been 
reading through the documentation and the code in the past few weeks to get 
familiar with arches but I will need your help and advice. 

Sadly, I am not in my city right now. It is the one which Rudyard Kipling 
once mentioned "If you truly wish to find someone you have known and who 
travels, there are two points on the globe you have but to sit and wait, 
sooner or later your man will come there: the docks of London and Port 
Said" 

Please do feel free to reach out for a chat if you may, and thank you again 
for making this group available to us
Mahmoud 

On Thursday, August 22, 2013 at 5:29:37 PM UTC+2, Edmund Lee wrote:
>
> Hello all, ... and welcome in particular to those who have joined the 
> Arches Discussion Forum recently.
>
> This online group was initially set up for the project team, and has just 
> recently been opened up as the public, so some of us haven't met before. 
> How about we all share a bit of background, just like we would if we were 
> meeting in the real world? If that sounds good to you, reply to this thread 
> and share with the group some or all of the following:
>
>- what is your interest in Arches?
>
>
>- where in the world are you working?
>
> and, just to make it a bit more fun,
>
>- what can you see out of the window? Is there any heritage in your 
>view?
>
> I look forward to getting to know everyone a bit better!
>
>
> Ed
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/79c42a51-caba-42df-9b1a-bb50ebacb1dc%40googlegroups.com.


[Arches] Zoom limit per group

2020-03-24 Thread Mahmoud Abdelrazek
Hello Everyone,

My name is Mahmoud Abdelrazek. I am from Egypt and I am happy to be 
introduced to such an active and helpful community. 

I am working on a project to introduce a few custom features to an Arches 
implementation. The first of which is imposing zoom in/out limit on each 
group of users. 

My questions are: Did anyone try this before? Do you have recommendations 
on how this might work? 

The approach I am working on now is to edit the context processors file so 
that it would pass different zoom in/out limits based on the group and add 
a group limit model on top of the group model to allow the admin to set the 
limits per group. 

What do you think of this? 

Any advice is appreciated


Thank you, 
Mahmoud  
 


-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/06cb34a1-e5ba-498e-b167-6242110dfd35%40googlegroups.com.


Re: [Arches] Problems loading HIP package in version 5.0 (Windows 10 installation)

2020-03-12 Thread Mahmoud Abdelrazek
Hi Cyrus, 

Thank you so much for your help. I am working with Bryan on the same 
project and I have a similar installation to his. I have tried removing the 
contents of the functions, widgets, and datatypes folders and then loading 
the package but I got this database error 

DETAIL:  Key (resourceclassfrom)=(99417384-b8fa-11e6-84a5-026d961c88e6) is 
not present in table "nodes".

similar to Eleni 
https://groups.google.com/forum/?utm_medium=email_source=footer#!msg/arches-dev/Ks1vD_lg1Y0/KmLJ8g6XHwAJ

I am not sure how to resolve it. It would be great if you could help on 
this. 

Thank you again,
Mahmoud 

On Friday, February 28, 2020 at 8:18:17 PM UTC+2, Cyrus Hiatt wrote:
>
> Hi Bryan - 
>
> Unfortunately that package has not been updated for v5, but it still may 
> work with some small changes. I would download the entire package locally 
> from github, unzip it and remove the contents of the functions, widgets, 
> and datatypes folders within the extensions directory. Then try to reload 
> package with the `-s` option of the load_package command pointed to your 
> local version of the package.
>
> Hope that helps,
>
> Cyrus
>
>
>  
>
> On Thu, Feb 27, 2020 at 10:47 AM Bryan Alvey  > wrote:
>
>> Hi Everyone,
>>
>> I've installed version 5.0 on my laptop  (Windows 10).  
>>
>> Under 'Next Steps', I'm trying to load the HIP package specified in:
>>
>> python manage.py packages -o load_package -s 
>> https://github.com/archesproject/arches4-example-pkg/archive/master.zip -db 
>> true
>>
>>
>> I note that in the address argument there is 'arches4-example'  and when 
>> I run the command I get:
>>
>> SyntaxError: Missing parentheses in call to 'print'. Did you mean 
>> print("no match for this preflabel:",preflabel)?
>>
>> - which I am informed may refer to Python 2.7 syntax. 
>>
>> So I guess what I'm asking is: Am I looking in the right place? Is there 
>> a HIP package for version 5?
>>
>> Can anybody help?
>>
>> Best wishes,
>>
>>
>>
>> Bryan Alvey
>>
>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@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 arches...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/f3fa2144-c4a1-4739-bfde-70290433493f%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/177f337e-6766-492e-8efb-cfb4b90d02f9%40googlegroups.com.