-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ColinMaudry/dita-rdf
- Loading branch information
Showing
101 changed files
with
12,381 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.project | ||
/build* | ||
!build_publishdoc.xml | ||
dita-rdf.xpr | ||
temp/ | ||
dita2rdf/src/browser/.sass-cache/ | ||
test* | ||
dita2rdf/demo/information/ | ||
dita2rdf/demo/docsrc | ||
dita2rdf/demo/out/* | ||
dita2rdf/src/customization/*.properties | ||
!dita2rdf/src/customization/build_template.properties | ||
dita2rdf/src/view | ||
*.rdf | ||
*.list | ||
/*.properties | ||
/documentation/* | ||
/documentation/src/out | ||
!/documentation/src | ||
!/documentation/*.pdf | ||
!/documentation/dita-rdf.html | ||
!/documentation/*.pdf | ||
!/documentation/*.chm | ||
dita-spec* | ||
dita2rdf.rdf | ||
oxygen-userguide.rdf | ||
node_modules/ | ||
app/ |
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,37 @@ | ||
# Turn off MultiViews | ||
Options -MultiViews | ||
|
||
# Directive to ensure *.rdf files served as appropriate content type, | ||
# if not present in main apache config | ||
AddType application/rdf+xml .rdf | ||
AddType text/turtle .ttl | ||
AddType application/ld+json .jsonld | ||
|
||
|
||
# Rewrite engine setup | ||
RewriteEngine On | ||
RewriteBase /ontologies | ||
|
||
# Rewrite rule to make sure we serve HTML content from the namespace URI if requested | ||
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml) | ||
RewriteCond %{HTTP_ACCEPT} text/html [OR] | ||
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR] | ||
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.* | ||
RewriteRule ^dita$ http://purl.org/dita/ditardf-project [R=303] | ||
|
||
# Rewrite rule to make sure we serve RDF/XML content from the namespace URI if requested | ||
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml [OR] | ||
RewriteCond %{HTTP_ACCEPT} application/xml | ||
RewriteRule ^dita$ http://dydra.com/colin-maudry/dita.rdf [R=303] | ||
|
||
# Rewrite rule to make sure we serve Turtle content from the namespace URI if requested | ||
RewriteCond %{HTTP_ACCEPT} text/turtle | ||
RewriteRule ^dita$ dita.ttl [R=303] | ||
|
||
# Rewrite rule to make sure we serve JSON-LD content from the namespace URI if requested | ||
RewriteCond %{HTTP_ACCEPT} application/ld\+json [OR] | ||
RewriteCond %{HTTP_ACCEPT} application/json | ||
RewriteRule ^dita$ http://dydra.com/colin-maudry/dita.jsonld [R=303] | ||
|
||
# Rewrite rule to make sure we serve the RDF/XML content from the namespace URI by default | ||
RewriteRule ^dita$ http://dydra.com/colin-maudry/dita.rdf [R=303] |
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,14 @@ | ||
The DITA RDF project | ||
==================== | ||
|
||
The objective of this project is to develop an ontology to describe [DITA XML](http://docs.oasis-open.org/dita/v1.2/os/spec/DITA1.2-spec.html) objects and to publish tools to generate [RDF](http://www.w3.org/TR/rdf11-primer/) triples based on that ontology. In the end, it enables the publication of the metadata of a DITA documentation set to the Semantic Web and consequently its linking with other data types (product, people, sales, non-DITA document metadata, etc.). | ||
|
||
The documentation of the project and its deliverables is published at [http://purl.org/dita/ditardf-project](http://purl.org/dita/ditardf-project). | ||
|
||
##Public domain | ||
|
||
The DITA RDF ontology, the DITA RDF plugin and all the code included in the DITA RDF project are free and released into the public domain, excepted the parts that were reused from the pdf2 DITA-OT plugin, developed by Idiom Inc. | ||
|
||
See [UNLICENSE](UNLICENSE) for the whole shebang. | ||
|
||
If you find the DITA RDF project useful, I would be grateful if you tweet about it (something like "Kudos to @CMaudry for the #DITA RDF project! http://purl.org/dita/ditardf-project #ditardf") or if you mention the origin and the author of this software in the documentation of your product. |
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,19 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
Assume nothing works, and you may be pleasantly surprised; and when it | ||
breaks, you get to keep both pieces. | ||
|
||
For more information, please refer to <http://unlicense.org/>. |
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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir="." name="build-documentation" default="package-zip-copy-plugin"> | ||
<property file="publishdoc.properties"/> | ||
<!-- The Piwik tracking code and the link to Github in the top right corner of the page --> | ||
<loadresource property="piwik-code"> | ||
<file file="documentation/codepiwik.txt"/> | ||
</loadresource> | ||
<target name="copy-doc-to-documentation"> | ||
<copy todir="documentation/" failonerror="false"> | ||
<file file="documentation/src/out/chm/dita-rdf.chm"/> | ||
<file file="documentation/src/out/pdf/dita-rdf.pdf"/> | ||
</copy> | ||
<delete dir="documentation/install/"/> | ||
<delete dir="documentation/src/out/"/> | ||
<delete dir="documentation/src/temp/"/> | ||
<delete file="dita2rdf/demo/ditardf-project.zip"/> | ||
</target> | ||
<target name="piwik-code"> | ||
<condition property="hasCode"> | ||
<resourcecontains substring="piwik" resource="documentation/index.html"/> | ||
</condition> | ||
<antcall target="insert-piwik-code"/> | ||
</target> | ||
<target name="insert-piwik-code" unless="hasCode"> | ||
<echo message="Adding Piwik code to index.html..." level="info"/> | ||
<replace file="documentation/index.html" token="</body>" value="${piwik-code}"/> | ||
</target> | ||
<target name="ftp-webhelp" depends="copy-doc-to-documentation,piwik-code"> | ||
<scp todir="${sftp.user}:${sftp.password}@${sftp.server}:${sftp.path}" trust="yes" verbose="yes" sftp="true"> | ||
<fileset dir="documentation/" includes="*/**" excludes="dita-rdf.html, *.pdf, *.chm, src/"/> | ||
</scp> | ||
</target> | ||
<target name="package-zip-copy-plugin" depends="ftp-webhelp"> | ||
<ant antfile="dita2rdf/build_demo.xml" target="package-zip-copy-plugin" usenativebasedir="true"/> | ||
</target> | ||
</project> |
Oops, something went wrong.