Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #136 from europeana/develop
Browse files Browse the repository at this point in the history
fix for has geo
  • Loading branch information
gsergiu committed May 24, 2019
2 parents 9bbbf0c + d9ee303 commit 9cb210b
Show file tree
Hide file tree
Showing 26 changed files with 172 additions and 413 deletions.
240 changes: 155 additions & 85 deletions LICENSE.md

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions entity-common/src/main/resources/config/entity.properties.template
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
#
# Copyright 2007-2012 The Europeana Foundation
#
# Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
# by the European Commission;
# You may not use this work except in compliance with the Licence.
#
# You may obtain a copy of the Licence at:
# http://joinup.ec.europa.eu/software/page/eupl
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the Licence is distributed on an "AS IS" basis, without warranties or conditions of
# any kind, either express or implied.
# See the Licence for the specific language governing permissions and limitations under
# the Licence.
#

#common settings
#boolean value indicating if the indexing of annotations in solr should be performed. required valid solr configurations
#entity.indexing.enabled = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
#
# Copyright 2007-2012 The Europeana Foundation
#
# Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
# by the European Commission;
# You may not use this work except in compliance with the Licence.
#
# You may obtain a copy of the Licence at:
# http://joinup.ec.europa.eu/software/page/eupl
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the Licence is distributed on an "AS IS" basis, without warranties or conditions of
# any kind, either express or implied.
# See the Licence for the specific language governing permissions and limitations under
# the Licence.
#

########## SPRINGFOX ##################
#property used by swagger to expose the REST specification
springfox.documentation.swagger.v2.path=/api-docs
Expand Down
20 changes: 0 additions & 20 deletions entity-common/src/main/resources/entity-common-context.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2007 EDL FOUNDATION
~
~ Licensed under the EUPL, Version 1.1 or– as soon they
~ will be approved by the European Commission - subsequent
~ versions of the EUPL (the "Licence");
~ you may not use this work except in compliance with the
~ Licence.
~ You may obtain a copy of the Licence at:
~
~ http://ec.europa.eu/idabc/eupl
~
~ Unless required by applicable law or agreed to in
~ writing, software distributed under the Licence is
~ distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
~ express or implied.
~ See the Licence for the specific language governing
~ permissions and limitations under the Licence.
-->
<beans:beans
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util"
Expand Down
9 changes: 0 additions & 9 deletions entity-definitions/pom.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?xml version="1.0"?>

<!-- Copyright 2007-2012 The Europeana Foundation Licenced under the EUPL,
Version 1.1 (the "Licence") and subsequent versions as approved by the European
Commission; You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed
under the Licence is distributed on an "AS IS" basis, without warranties
or conditions of any kind, either express or implied. See the Licence for
the specific language governing permissions and limitations under the Licence. -->

<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
/*
* Copyright 2007-2012 The Europeana Foundation
*
* Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
* by the European Commission;
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the Licence is distributed on an "AS IS" basis, without warranties or conditions of
* any kind, either express or implied.
* See the Licence for the specific language governing permissions and limitations under
* the Licence.
*/

package eu.europeana.entity.definitions.formats;

import eu.europeana.entity.definitions.exceptions.UnsupportedFormatTypeException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
/*
* Copyright 2007-2012 The Europeana Foundation
*
* Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
* by the European Commission;
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the Licence is distributed on an "AS IS" basis, without warranties or conditions of
* any kind, either express or implied.
* See the Licence for the specific language governing permissions and limitations under
* the Licence.
*/

package eu.europeana.entity.definitions.model.search.result;

import java.util.Date;
Expand Down
9 changes: 0 additions & 9 deletions entity-eval/pom.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?xml version="1.0"?>

<!-- Copyright 2007-2012 The Europeana Foundation Licenced under the EUPL,
Version 1.1 (the "Licence") and subsequent versions as approved by the European
Commission; You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed
under the Licence is distributed on an "AS IS" basis, without warranties
or conditions of any kind, either express or implied. See the Licence for
the specific language governing permissions and limitations under the Licence. -->

<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Expand Down
21 changes: 1 addition & 20 deletions entity-eval/src/test/resources/entity-eval-context.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2007 EDL FOUNDATION
~
~ Licensed under the EUPL, Version 1.1 or– as soon they
~ will be approved by the European Commission - subsequent
~ versions of the EUPL (the "Licence");
~ you may not use this work except in compliance with the
~ Licence.
~ You may obtain a copy of the Licence at:
~
~ http://ec.europa.eu/idabc/eupl
~
~ Unless required by applicable law or agreed to in
~ writing, software distributed under the Licence is
~ distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
~ express or implied.
~ See the Licence for the specific language governing
~ permissions and limitations under the Licence.
-->

<beans:beans
xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
Expand Down
9 changes: 0 additions & 9 deletions entity-mongo/pom.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?xml version="1.0"?>

<!-- Copyright 2007-2012 The Europeana Foundation Licenced under the EUPL,
Version 1.1 (the "Licence") and subsequent versions as approved by the European
Commission; You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed
under the Licence is distributed on an "AS IS" basis, without warranties
or conditions of any kind, either express or implied. See the Licence for
the specific language governing permissions and limitations under the Licence. -->

<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Expand Down
17 changes: 0 additions & 17 deletions entity-mongo/src/main/resources/entity-mongo-context.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2007-2012 The Europeana Foundation
Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
by the European Commission;
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under
the Licence is distributed on an "AS IS" basis, without warranties or conditions of
any kind, either express or implied.
See the Licence for the specific language governing permissions and limitations under
the Licence.
-->

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
17 changes: 0 additions & 17 deletions entity-mongo/src/main/resources/internal/entity-mongo-beans.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2007-2012 The Europeana Foundation
Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
by the European Commission;
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under
the Licence is distributed on an "AS IS" basis, without warranties or conditions of
any kind, either express or implied.
See the Licence for the specific language governing permissions and limitations under
the Licence.
-->

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
17 changes: 0 additions & 17 deletions entity-mongo/src/main/resources/internal/entity-mongo-dao.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2007-2012 The Europeana Foundation
Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
by the European Commission;
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under
the Licence is distributed on an "AS IS" basis, without warranties or conditions of
any kind, either express or implied.
See the Licence for the specific language governing permissions and limitations under
the Licence.
-->

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2007-2012 The Europeana Foundation
Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
by the European Commission;
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under
the Licence is distributed on an "AS IS" basis, without warranties or conditions of
any kind, either express or implied.
See the Licence for the specific language governing permissions and limitations under
the Licence.
-->

<beans
xmlns="http://www.springframework.org/schema/beans"
Expand Down
9 changes: 0 additions & 9 deletions entity-solr/pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<!-- Copyright 2007-2012 The Europeana Foundation Licenced under the EUPL,
Version 1.1 (the "Licence") and subsequent versions as approved by the European
Commission; You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed
under the Licence is distributed on an "AS IS" basis, without warranties
or conditions of any kind, either express or implied. See the Licence for
the specific language governing permissions and limitations under the Licence. -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

Expand Down
9 changes: 0 additions & 9 deletions entity-solr/src/main/resources/entity-solr-context.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- Copyright 2007-2012 The Europeana Foundation Licenced under the EUPL,
Version 1.1 (the "Licence") and subsequent versions as approved by the European
Commission; You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed
under the Licence is distributed on an "AS IS" basis, without warranties
or conditions of any kind, either express or implied. See the Licence for
the specific language governing permissions and limitations under the Licence. -->

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
Expand Down
17 changes: 0 additions & 17 deletions entity-solr/src/main/resources/internal/entity-solr-server.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2007-2012 The Europeana Foundation
Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
by the European Commission;
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under
the Licence is distributed on an "AS IS" basis, without warranties or conditions of
any kind, either express or implied.
See the Licence for the specific language governing permissions and limitations under
the Licence.
-->

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
17 changes: 0 additions & 17 deletions entity-solr/src/test/resources/entity-solr-test.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2007-2012 The Europeana Foundation
Licenced under the EUPL, Version 1.1 (the "Licence") and subsequent versions as approved
by the European Commission;
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at:
http://joinup.ec.europa.eu/software/page/eupl
Unless required by applicable law or agreed to in writing, software distributed under
the Licence is distributed on an "AS IS" basis, without warranties or conditions of
any kind, either express or implied.
See the Licence for the specific language governing permissions and limitations under
the Licence.
-->

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
package eu.europeana.entity.utils;

import eu.europeana.entity.definitions.model.vocabulary.WebEntityConstants;

public class EntityUtils {

public static String createWikimediaResourceString(String wikimediaCommonsId) {
assert wikimediaCommonsId.contains("Special:FilePath/");
return wikimediaCommonsId.replace("Special:FilePath/", "File:");
}

public static String toGeoUri(String latLon){
return WebEntityConstants.PROTOCOL_GEO + latLon;
}

}
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package eu.europeana.entity.utils.jsonld;

import java.util.Comparator;
Expand Down
Loading

0 comments on commit 9cb210b

Please sign in to comment.