Uploading and Linking to Media files

Printer-friendly version

To upload a media or image file is easy. All you have to do is use a document tag with the name of the target file and alternate text to use for the link. This will write the name of the file using the name attribute or, if set, the alt attribute. If the document has not yet been uploaded (based on the name of the document), then an Upload link will be provided for you to the right of the text. If it has been provided, then a download link will be provided.

For example:

<document href="AdvancedSemTech-Week3-WestPatrick.doc" alt="Most Awesome Research Idea Ever"/>

Which would look like this initially:

Most Awesome Research Idea Ever

Once you have uploaded the document, it would change the "Upload" link to a "Download" link, such as this one:

Presentable Strategies in AI and their Applications to the Semantic Web [Download]


If you have an image, use the document tag above, and add mode="img" so that it displays the image in the page.

Pinky and the Brain

Eventually we will have an embed option so pdf documents, and other documents, can be embedded in the page as well.

<document href="Super_Shuttle.pdf" mode="embed"/>

What does this give us

This makes our document upload system semantically enabled. When documents are created as publications, presentations, etc... then we will have all of that information associated with the uploaded file. The URI of the document is the location of the file.

With basic file upload where you upload the document through the document tag, you can some dc tags related to the uploading of the file. So if I were to upload a file, it would have me as the creator of that version of the file, and the current date and time as the created and modified elements.