-
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.
1) org country improved to contain only id, type, and prefLabel; 2)
multiple retrieval improved to handle old org ids
- Loading branch information
1 parent
fac7db1
commit 9e5dec6
Showing
11 changed files
with
139 additions
and
56 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.ABOUT; | ||
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.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 = { | ||
ABOUT, | ||
PREF_LABEL | ||
}) | ||
public class XmlEdmCountry { | ||
|
||
@XmlAttribute(namespace = NAMESPACE_RDF, name = XmlConstants.RESOURCE) | ||
private String about; | ||
|
||
@XmlElement(namespace = XmlConstants.NAMESPACE_SKOS, name = PREF_LABEL) | ||
private List<LabelledResource> prefLabel = new ArrayList<>(); | ||
|
||
public XmlEdmCountry(Place place) { | ||
this.about=place.getAbout(); | ||
this.prefLabel= RdfXmlUtils.convertMapToXmlMultilingualString(place.getPrefLabel()); | ||
} | ||
|
||
public XmlEdmCountry() { | ||
} | ||
|
||
public String getAbout() { | ||
return this.about; | ||
} | ||
|
||
public void setAbout(String about) { | ||
this.about = about; | ||
} | ||
|
||
public List<LabelledResource> getPrefLabel() { | ||
return this.prefLabel; | ||
} | ||
|
||
public void setPrefLabel(List<LabelledResource> prefLabel) { | ||
this.prefLabel=prefLabel; | ||
} | ||
} |
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
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