Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! I fixed some calls to "sys" for you! #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions example/example.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var rdf2json = require("../lib/rdf2json");
var sys = require("sys");
var util = require('util');
rdf2json.convertFileIntoRDFJSON("./test/wine.rdf", "flat", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
var obj = eval("("+ rdfjson +")");
sys.puts(JSON.stringify(obj));
util.puts(JSON.stringify(obj));
});

rdf2json.convertURLIntoRDFJSON("http://www.w3.org/TR/owl-guide/wine.rdf", "sparql", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
var obj = eval("("+ rdfjson +")");
sys.puts(JSON.stringify(obj));
util.puts(JSON.stringify(obj));
});

rdf2json.convertStringIntoRDFJSON("" +
Expand Down Expand Up @@ -44,5 +44,5 @@ rdf2json.convertStringIntoRDFJSON("" +
" </owl:Ontology>" +
"</rdf:RDF>", "talis", function(err, rdfjson){
var obj = eval("("+ rdfjson +")");
sys.puts(JSON.stringify(obj));
util.puts(JSON.stringify(obj));
});
14 changes: 7 additions & 7 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var rdf2json = require("../lib/rdf2json");
var jsunit = require("mjsunit");
var sys = require("sys");
var util = require('util');

function testConvertStringIntoRDFJSON(){
rdf2json.convertStringIntoRDFJSON("" +
Expand Down Expand Up @@ -34,7 +34,7 @@ function testConvertStringIntoRDFJSON(){
" <rdfs:label>Wine Ontology</rdfs:label>" +
" </owl:Ontology>" +
"</rdf:RDF>", "flat", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
jsunit.assertNotNull("The generated flat RDF/JSON string should not be null", rdfjson);
var jsonobj = eval("("+ rdfjson +")");
jsunit.assertNotNull("The flat RDF/JSON object should not be null", jsonobj);
Expand Down Expand Up @@ -89,7 +89,7 @@ function testConvertStringIntoRDFJSON(){
" <rdfs:label>Wine Ontology</rdfs:label>" +
" </owl:Ontology>" +
"</rdf:RDF>", "sparql", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
jsunit.assertNotNull("The generated SPARQL RDF/JSON string should not be null", rdfjson);
var jsonobj = eval("("+ rdfjson +")");
jsunit.assertNotNull("The SPARQL RDF/JSON object should not be null", jsonobj);
Expand All @@ -98,7 +98,7 @@ function testConvertStringIntoRDFJSON(){

function testConvertFileIntoRDFJSON(){
rdf2json.convertFileIntoRDFJSON("../wine.rdf", "sparql", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
jsunit.assertNotNull("The generated SPARQL RDF/JSON string should not be null", rdfjson);
var jsonobj = eval("("+ rdfjson +")");
jsunit.assertNotNull("The SPARQL RDF/JSON object should not be null", jsonobj);
Expand Down Expand Up @@ -145,7 +145,7 @@ function testConvertStringIntoRDFJSON(){
" <rdfs:label>Wine Ontology</rdfs:label>" +
" </owl:Ontology>" +
"</rdf:RDF>", "talis", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
jsunit.assertNotNull("The generated Talis RDF/JSON string should not be null", rdfjson);
var jsonobj = eval("("+ rdfjson +")");
jsunit.assertNotNull("The Talis RDF/JSON object should not be null", jsonobj);
Expand All @@ -154,7 +154,7 @@ function testConvertStringIntoRDFJSON(){

function testConvertFileIntoRDFJSON(){
rdf2json.convertFileIntoRDFJSON("../wine.rdf", "talis", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
jsunit.assertNotNull("The generated Talis RDF/JSON string should not be null", rdfjson);
var jsonobj = eval("("+ rdfjson +")");
jsunit.assertNotNull("The Talis RDF/JSON object should not be null", jsonobj);
Expand All @@ -163,7 +163,7 @@ function testConvertFileIntoRDFJSON(){

function testConvertURLIntoRDFJSON(){
rdf2json.convertURLIntoRDFJSON("http://www.w3.org/TR/owl-guide/wine.rdf", "talis", function(err, rdfjson){
if(err) sys.puts("Something wrong here ...");
if(err) util.puts("Something wrong here ...");
jsunit.assertNotNull("The generated Talis RDF/JSON string should not be null", rdfjson);
var jsonobj = eval("("+ rdfjson +")");
jsunit.assertNotNull("The Talis RDF/JSON object should not be null", jsonobj);
Expand Down