-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #311 from europeana/EA-3643-zoho-country-improve
1) org country improved to contain only id, type, and prefLabel; 2)
- Loading branch information
Showing
11 changed files
with
156 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...-definitions/src/main/java/eu/europeana/entitymanagement/web/xml/model/XmlEdmCountry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package eu.europeana.entitymanagement.web.xml.model; | ||
|
||
import static eu.europeana.entitymanagement.web.xml.model.XmlConstants.NAMESPACE_EDM; | ||
import static eu.europeana.entitymanagement.web.xml.model.XmlConstants.NAMESPACE_RDF; | ||
import static eu.europeana.entitymanagement.web.xml.model.XmlConstants.PREF_LABEL; | ||
import static eu.europeana.entitymanagement.web.xml.model.XmlConstants.RESOURCE; | ||
import static eu.europeana.entitymanagement.web.xml.model.XmlConstants.XML_PLACE; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
import eu.europeana.entitymanagement.definitions.model.Place; | ||
|
||
@XmlRootElement(namespace = NAMESPACE_EDM, name = XML_PLACE) | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType( | ||
propOrder = { | ||
RESOURCE, | ||
PREF_LABEL | ||
}) | ||
public class XmlEdmCountry { | ||
|
||
@XmlAttribute(namespace = NAMESPACE_RDF, name = XmlConstants.RESOURCE) | ||
private String resource; | ||
|
||
@XmlElement(namespace = XmlConstants.NAMESPACE_SKOS, name = PREF_LABEL) | ||
private List<LabelledResource> prefLabel = new ArrayList<>(); | ||
|
||
public XmlEdmCountry(Place place) { | ||
this.resource=place.getAbout(); | ||
this.prefLabel= RdfXmlUtils.convertMapToXmlMultilingualString(place.getPrefLabel()); | ||
} | ||
|
||
public XmlEdmCountry() { | ||
} | ||
|
||
public List<LabelledResource> getPrefLabel() { | ||
return this.prefLabel; | ||
} | ||
|
||
public void setPrefLabel(List<LabelledResource> prefLabel) { | ||
this.prefLabel=prefLabel; | ||
} | ||
|
||
public String getResource() { | ||
return resource; | ||
} | ||
|
||
public void setResource(String resource) { | ||
this.resource = resource; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...nagement-tests/src/integration-test/resources/content/organization_register_zoho_gfm.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"type": "Organization", | ||
"id": "https://crm.zoho.eu/crm/org20085137532/tab/Accounts/486281000000940433" | ||
"id": "https://crm.zoho.eu/crm/org20085137532/tab/Accounts/486281000000940433", | ||
"sameAs": [ | ||
"http://data.europeana.eu/organization/486281000000940433" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.