Submit information about visitor destinations to the national API¶
To automatically submit data to the national API, you need to register a harvesting source in the registry at [data.visitsweden.com] (https://data.visitsweden.com) and express your visitor destinations in accordance with the specification and make them available in a file expressed in either JSON-LD, Turtle, or RDF/XML. For more information about the national API, support, and user management, go to https://corporate.visitsweden.com/nationellt-api/
test.data.visitsweden.com¶
You must have a user account with your email address. If you do not have one, please contact support. Please reset your password and confirm the changed password via the email from noreply@entryscape.net. As usual, check your spam folder. If you have not received an email within 15 minutes, contact support and they will give you a temporary password. On the left side of the overview, you will see several options:
Toolbox¶
Here you can test your JSON-LD expression and get a validation report for each part of the standard. Cardinality is checked at the property level, as are regular expressions.
Organizations¶
Click on your organization and the overview. In the left-hand menu, select Information and then click on Edit. Then follow the process described below.
Step 1¶
This is where you configure your harvest. Follow the process accordingly, making sure you use the values below as the fields other than Transformation type are free text fields. - Click on the organization you represent and you will be navigated to the overview. - Click on information and then on Edit. - - Under Harvesting source, add the first transformation. The transformation type must be fetch, source must be the URL where your data is stored in JSON-LD, and type must be application/ld+json.
Step 2¶
Add a new transform using the + icon. - The transformation type must have the value validate.
Step 3¶
Add a new transform using the + icon. - The transformation type must have the value merge and the profile field must have the value: tourism. - Primary types, supportive types, and name can be ignored completely in this step.
data.visitsweden.com¶
Start by logging in to data.visitsweden.com and then click on Organizations. Go to the overview view and the Information heading in the left-hand overview menu. Then follow the same process as described above.