Skip to content

Commit

Permalink
Removed "prov:InternationalizedString" type from the PROV-JSON litera…
Browse files Browse the repository at this point in the history
…l structure.

Fixed #133
  • Loading branch information
trungdong committed Aug 10, 2015
1 parent f70a2cf commit ba301a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions prov-json/schema/prov-json-schema-v4.js
Expand Up @@ -35,10 +35,9 @@
"title": "An international string with langtag",
"properties": {
"$": { "type": "string" },
"type": { "type": "string", "format": "uri" },
"lang": { "type": "string" }
},
"required": ["$", "type"],
"required": ["$", "lang"],
"additionalProperties": false
},
"literal-complex": {
Expand Down
Expand Up @@ -217,7 +217,7 @@ else if (value instanceof LangString) {
String lang = iStr.getLang();
if (lang != null) {
// If 'lang' is defined
result = typedLiteral(iStr.getValue(), "prov:InternationalizedString", lang);
result = typedLiteral(iStr.getValue(), null, lang);
}
else {
// Otherwise, just return the string
Expand Down

0 comments on commit ba301a6

Please sign in to comment.