问题描述
我创建了一个角度表单应用程序,其中包含用于获取所描述信息的数据的输入,但是我在按下提交时遇到了挑战。提交时如何以 JSON 形式获取数据?那么如何将它们转换为 XML/Rdf/Skos 呢?
有一个用户,他拥有一个数字文件(“数据集”),该用户希望将其发布给其他科学家。 因此,必须提供相关特征,该文件的全部内容。 过去,这只是通过提供非结构化的自由文本描述或提供关键字标签来完成的。 然而,在这种情况下,最后存在两个挑战。 这些文本中的信息不容易被访问和过滤,因此如果以更结构化和更明确的方式提供和存储这些信息会更好。 通常,用户甚至不知道要描述哪些特征。因此,应用程序前端可能会有某种帮助。 因此,我们可以依赖一个简单的数据源,该数据源提供相关概念的分类,用户可以从中进行选择。 最后,用户应该能够通过在网络输入表单(“视频”)中输入文字字符串以自然的方式添加信息,并且应用程序本身将保存输入的文本标签以及此概念的附加元信息,例如明确的标识符(“http://dbpedia.org/resource/Video”)或类别(“MediaType”)。
这里是表格:
<form>
<div class="form-group">
<label for="title">Title:</label>
<input type="text" class="form-control" id="title" aria-
describedby="titleHelp" required>
<small id="titleHelp" class="form-text text-muted">Add the title
of dataset</small>
</div>
<div class="form-group">
<label for="author">Author/Authors:</label>
<input type="text" class="form-control" id="author" required>
</div>
<div class="form-group">
<label for="date">Publication Date:</label>
<input type="date" class="form-control" id="date">
</div>
<div class="form-group">
<label for="exampleFormControlSelect1">Select your file type:
</label>
<select class="form-control" id="exampleFormControlSelect1">
<option selected>choose...</option>
<option>video</option>
<option>picture</option>
<option>article</option>
<option>log file</option>
<option>other types</option>
</select>
</div>
<div class="form-group" *ngIf="select.hasOwnProperty('other
types')">
<label for="other">Write your file type if it is not mentioned:
</label>
<input type="text" class="form-control" id="other">
</div>
<div class="form-group">
<label for="license">License:</label>
<input type="text" class="form-control" id="license">
</div>
<div class="form-group">
<label for="keyword">Keywords:</label>
<input type="text" class="form-control" id="keyword">
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">File
Description</label>
<textarea class="form-control" id="exampleFormControlTextarea1"
rows="3"></textarea>
</div>
<div class="form-group form-check">
<input type="checkBox" class="form-check-input"
id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check this
Box if this article is for the range of age +16</label>
</div>
<div class="form-group custom-switch">
<input type="checkBox" class="custom-control-input"
id="customSwitch1">
<label class="custom-control-label" for="customSwitch1">Toggle
this switch element</label>
</div>
<div class="form-group custom-file">
<input type="file" class="custom-file-input" id="customFile">
<label class="custom-file-label" for="customFile">Choose
file</label>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)