| <#ftl output_format="XML" auto_esc=true> |
| <#-- |
| ~ 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 |
| ~ |
| ~ 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. |
| --> |
| <#attempt> |
| <#assign person = pp.loadData('json', 'person.json')> |
| <#recover> |
| <#stop "NO_PROFILE_INFORMATION"> |
| </#attempt> |
| @prefix : <${namespace}#> . |
| @prefix as: <http://www.w3.org/ns/activitystreams#> . |
| @prefix apst: <http://streams.apache.org/ns#> . |
| @prefix dc: <http://purl.org/dc/elements/1.1/#> . |
| @prefix dct: <http://purl.org/dc/terms/#> . |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| @prefix xs: <http://www.w3.org/2001/XMLSchema#> . |
| @base <${namespace}> . |
| |
| :${id} a as:Person . |
| |
| <#assign now = .now> |
| |
| :${id} |
| as:displayName "${person.displayName}" ; |
| dct:created "${now?string.xs_nz}"^^xs:dateTime ; |
| . |