Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
2 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
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
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,22 @@ | ||
package org.musicpath | ||
|
||
import net.croz.scardf.Res // Jena wrapper | ||
import scala.xml.Node | ||
|
||
class Resource(val singular:String, val plural:String, val rdfType:Res, val view:(Res)=>Node) { | ||
|
||
def this(singular:String, rdfType:Res, view:(Res)=>Node) = this(singular, singular+"s", rdfType, view) | ||
/* | ||
def viewAll | ||
def view | ||
if res/RDF.Type isEmpty | ||
edit | ||
def edit | ||
private def appearance | ||
*/ | ||
} | ||
|
||
// vim: set ts=4 sw=4 et: |