Skip to content

Commit

Permalink
Merge branch 'release/2.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
pkleef committed Dec 1, 2015
2 parents 0fc0695 + 12c4e59 commit 8c33381
Show file tree
Hide file tree
Showing 13 changed files with 603 additions and 16 deletions.
37 changes: 37 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# List of Authors/Contributors
#
# This file is part of the OpenLink Structured Data Sniffer
#
# Copyright (C) 2015 OpenLink Software
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; only version 2 of the License, dated June 1991.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#

Current Maintainer
------------------
Patrick van Kleef opensource{at}openlinksw.com


Author
-------
Sergey Malinin smalinin{at}openlinksw.com


Contributors
------------

This list may not complete. If you have contributed to this project and want to appear on this list,
please email the current maintainer.
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#
# CREDITS
#
# This file is part of the OpenLink Structured Data Sniffer
#
# Copyright (C) 2015 OpenLink Software
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; only version 2 of the License, dated June 1991.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#

The OpenLink Software ODE Sniffer project wishes to acknowledge incorporation of code from the
following projects:

* jQuery
Project : https://jquery.com/
License : https://github.com/jquery/jquery/blob/master/LICENSE.txt, looks like MIT license
Description : jQuery is a fast, small, and feature-rich JavaScript library. It makes things
like HTML document traversal and manipulation, event handling, animation, and Ajax
much simpler with an easy-to-use API that works across a multitude of browsers.


* jQuery migrate
Project : https://github.com/jquery/jquery-migrate
License : https://github.com/jquery/jquery-migrate/blob/master/LICENSE.txt, looks like MIT license
Description : Migrate older jQuery code to jQuery 1.9+


* jsonld.js
Project : https://github.com/digitalbazaar/jsonld.js
License : New BSD License (3-clause)
Description : A JSON-LD Processor and API implementation in JavaScript.
NOTE : This file was slightly adapted by OpenLink to comment out some unused code.
The original file can be found in lib/original/jsonld.js for comparison.


* Microdatajs
Project : https://github.com/foolip/microdatajs
License : MIT license
Description : MicrodataJS is a jQuery plugin that provides an API for accessing Microdata
inspired by (but by necessity slightly different from) the native DOM API.


* N3.js
Project : https://github.com/RubenVerborgh/N3.js
License : MIT license
Description : Lightning fast, asynchronous, streaming RDF for JavaScript.


* RDFa.js
Project : https://github.com/alexmilowski/green-turtle
License : MIT license
Description : An RDFa 1.1. implementation for browsers.
NOTE : This file was slightly adapted by OpenLink to add some extra functionality and to
comment out some unused code. The original file can be found in
lib/original/RDFa.js for comparison.


This list may not complete. If you feel any third party project is missing from this list, please
email the current maintainer.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# OpenLink Structured Data Sniffer

## Intro
The OpenLink Structured Data Sniffer (OSDS) is a plugin for the Chrome browser that detects and
shows structured data embedded in web pages in either of the following formats:

- **JSON-LD**
- **Microdata**
- **RDFa**
- **Turtle**

## License
Copyright 2015 [OpenLink Software](mailto:[email protected])

This software is licensed under the GNU General Public License (see
[COPYING](http://github.com/openlink/rdf-editor/blob/develop/COPYING)).

**Note**: that the only valid version of the GPL license as far as this project is concerned is the
original GNU General Public License Version 2, dated June 1991.


## Deployment

First clone the sources from github, or download and extract a .tar.gz or .bzip based distribution.

Then open your Chrome browser, choose **Preferences**, **Extensions** and choose the option **Load unpacked extension...**.

Navigate to the folder with the source code and press the **Select** button, to install the extension in your browser.

Next navigate to a page containing structured data such as:

- [OpenLink Home Page](http://www.openlinksw.com/)
- [BBC News](http://www.bbc.com/news)

and click on the little icon that appears in the address bar.
21 changes: 19 additions & 2 deletions background.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
<html>
<!--
This file is part of the OpenLink Structured Data Sniffer
Copyright (C) 2015 OpenLink Software
This project is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; only version 2 of the License, dated June 1991.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-->
<head>
<script type="text/javascript" src="lib/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="lib/jquery-migrate-1.2.1.min.js"></script>
Expand Down Expand Up @@ -48,8 +66,7 @@

<table class="copyright_right">
<tr>
<td><a href="http://www.openlinksw.com"> OpenLink Software </a></td>
<td style="width:50px">(C) 2015 </td>
<td>Copyright &copy; 2015 <a href="http://www.openlinksw.com"> OpenLink Software </a></td>
</tr>
</table>
</body>
Expand Down
25 changes: 19 additions & 6 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* This file is part of the OpenLink Structured Data Sniffer
*
* Copyright (C) 2015 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License, dated June 1991.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/

// React when the browser action's icon is clicked.
var icon_active = 'icon48.png';
Expand Down Expand Up @@ -317,9 +336,3 @@ chrome.extension.onMessage.addListener(function(request, sender, sendResponse)
}

});






20 changes: 20 additions & 0 deletions handlers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* This file is part of the OpenLink Structured Data Sniffer
*
* Copyright (C) 2015 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License, dated June 1991.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/

/******/
Namespace = function() {
this.ns_list = {
Expand Down
24 changes: 20 additions & 4 deletions html_gen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
/*
* This file is part of the OpenLink Structured Data Sniffer
*
* Copyright (C) 2015 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License, dated June 1991.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/


HTML_Gen = function() {
this.ns = new Namespace();
};
Expand Down Expand Up @@ -154,6 +173,3 @@
},

}



File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "OpenLink Structured Data Sniffer",
"version": "2.2.2",
"version": "2.2.3",
"manifest_version": 2,
"minimum_chrome_version": "18",
"description": "Detects and shows the data embedded in a given page.",
Expand All @@ -27,4 +27,4 @@
"permissions": [
"tabs", "http://*/*", "https://*/*"
]
}
}
22 changes: 21 additions & 1 deletion sniffer.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* This file is part of the OpenLink Structured Data Sniffer
*
* Copyright (C) 2015 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License, dated June 1991.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/

#docdata_view{
/**
float:left;
Expand Down Expand Up @@ -126,4 +146,4 @@ ul#tabs li a.selected {
/**
div.tabContent { border: 1px solid #c9c3ba; padding: 0.5em; background-color: #f1f0ee; }
div.tabContent.hide { display: none; }
**/
**/
21 changes: 20 additions & 1 deletion sniffer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* This file is part of the OpenLink Structured Data Sniffer
*
* Copyright (C) 2015 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License, dated June 1991.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/

var $ = jQuery;
var micro_items = 0;
Expand Down Expand Up @@ -125,4 +144,4 @@ $(window).load(function() {

alert(e);
}
});
});

0 comments on commit 8c33381

Please sign in to comment.